Changeset 1459215
- Timestamp:
- 07/22/2016 07:58:51 PM (10 years ago)
- File:
-
- 1 edited
-
clickfunnels/trunk/clickfunnels.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clickfunnels/trunk/clickfunnels.php
r1458488 r1459215 13 13 public function __construct() { 14 14 add_action( "init", array( $this, "create_custom_post_type" ) ); 15 add_action( 'plugins_loaded', 'upgrade_existing_posts' ); 15 16 add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) ); 16 17 add_filter( 'manage_edit-clickfunnels_columns', array( $this, 'add_columns' ) ); … … 386 387 387 388 function upgrade_existing_posts() { 389 if (get_option('clickfunnels_posts_upgraded_to_v3')) { 390 return; 391 } 388 392 $args = array( 389 393 'posts_per_page' => -1, … … 460 464 } 461 465 } 466 add_option('clickfunnels_posts_upgraded_to_v3', true); 462 467 } 463 468
Note: See TracChangeset
for help on using the changeset viewer.