| @@ -50,13 +50,8 @@ | ||
| 50 | 50 | add_action( 'pre_get_posts', [ $this, 'pre_get_posts' ], 1 ); |
| 51 | 51 | add_action( 'wp', function () { |
| 52 | 52 | new TemplateLoader( $this, self::$views ); |
| 53 | 53 | } ); |
| 54 | - // Unconditional (admin + front end): the editor's admin page bootstrap | |
| 55 | - // (post.php?action=elementor) never fires `wp`, so this can't be gated | |
| 56 | - // behind the TemplateLoader instantiation above. See TemplateLoader:: | |
| 57 | - // register_preview_product_hooks() for why two render pathways are covered. | |
| 58 | - TemplateLoader::register_preview_product_hooks(); | |
| 59 | 54 | |
| 60 | 55 | add_action( 'init', [ $this, 'source_register' ] ); |
| 61 | 56 | add_action( 'wp_ajax_templately_create_template', [ $this, 'create_template' ] ); |
| 62 | 57 | |