| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | namespace Elementor\App\Modules\ImportExport; |
| 4 | 4 | |
| 5 | 5 | use Elementor\Core\Utils\Str; |
| 6 | 6 | use Elementor\Modules\LandingPages\Module as Landing_Pages_Module; |
| 7 | -use Elementor\Modules\FloatingButtons\Module as Floating_Buttons_Module; | |
| 7 | +use Elementor\Modules\System_Info\Reporters\Server; | |
| 8 | 8 | use Elementor\TemplateLibrary\Source_Local; |
| 9 | 9 | use Elementor\Utils as ElementorUtils; |
| 10 | 10 | |
| 11 | 11 | class Utils { |
| @@ -58,14 +58,9 @@ | ||
| 58 | 58 | return $result; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | public static function get_elementor_post_types() { |
| 62 | - $elementor_post_types = get_post_types_by_support( 'elementor' ); | |
| 63 | - | |
| 64 | - return array_filter( $elementor_post_types, function ( $value ) { | |
| 65 | - // Templates are handled in a separate process. | |
| 66 | - return 'elementor_library' !== $value; | |
| 67 | - } ); | |
| 62 | + return [ 'post', 'page', 'e-landing-page' ]; | |
| 68 | 63 | } |
| 69 | 64 | |
| 70 | 65 | public static function get_builtin_wp_post_types() { |
| 71 | 66 | return [ 'post', 'page', 'nav_menu_item' ]; |
| @@ -79,10 +74,9 @@ | ||
| 79 | 74 | ] ); |
| 80 | 75 | |
| 81 | 76 | unset( |
| 82 | 77 | $post_types[ Landing_Pages_Module::CPT ], |
| 83 | - $post_types[ Source_Local::CPT ], | |
| 84 | - $post_types[ Floating_Buttons_Module::CPT_FLOATING_BUTTONS ] | |
| 78 | + $post_types[ Source_Local::CPT ] | |
| 85 | 79 | ); |
| 86 | 80 | |
| 87 | 81 | return array_keys( $post_types ); |
| 88 | 82 | } |