| @@ -1,9 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace Templately\Builder; |
| 4 | 4 | |
| 5 | -use Templately\Core\Importer\FullSiteImport; | |
| 6 | 5 | use Templately\Utils\Helper; |
| 7 | 6 | use WP_Post; |
| 8 | 7 | use WP_Query; |
| 9 | 8 | |
| @@ -26,9 +25,9 @@ | ||
| 26 | 25 | $this->register_post_type(); |
| 27 | 26 | } |
| 28 | 27 | |
| 29 | 28 | private function add_actions() { |
| 30 | - add_filter( 'views_edit-' . self::CPT, [ $this, 'admin_print_tabs' ], 100 ); | |
| 29 | + add_filter( 'views_edit-' . self::CPT, [ $this, 'admin_print_tabs' ] ); | |
| 31 | 30 | add_action( 'in_admin_header', [ $this, 'in_admin_header' ] ); |
| 32 | 31 | if ( is_admin() ) { |
| 33 | 32 | // add_action( 'manage_posts_extra_tablenav', [ $this, 'extra_table_nav' ] ); |
| 34 | 33 | add_action( 'manage_' . self::CPT . '_posts_custom_column', [ $this, 'custom_column' ], 10, 2 ); |
| @@ -36,9 +35,9 @@ | ||
| 36 | 35 | add_filter( 'post_row_actions', [ $this, 'post_row_actions' ], 10, 2 ); |
| 37 | 36 | add_action( 'admin_footer', [ $this, 'app' ] ); |
| 38 | 37 | } |
| 39 | 38 | |
| 40 | - // add_action( 'save_post', [ $this, 'save_post' ], 11, 3 ); | |
| 39 | + add_action( 'save_post', [ $this, 'save_post' ], 11, 3 ); | |
| 41 | 40 | } |
| 42 | 41 | |
| 43 | 42 | /** |
| 44 | 43 | * If needed to add a filter for platform |
| @@ -235,9 +234,8 @@ | ||
| 235 | 234 | ]; |
| 236 | 235 | } |
| 237 | 236 | |
| 238 | 237 | $this->builder::$views->get( 'builder/tabs', [ 'tabs' => $tabs, 'template_types' => $template_types ] ); |
| 239 | - return []; | |
| 240 | 238 | } |
| 241 | 239 | |
| 242 | 240 | /** |
| 243 | 241 | * Retrieves items. |