PluginProbe
Elementor Website Builder – more than just a page builder / 3.16.2
Elementor Website Builder – more than just a page builder v3.16.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | app/modules/import-export/utils.php +3 -9 4.2.0-dev23.16.2 View file →
@@ -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 }