📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 08:59:57
📂
/ (Root)
/
home
/
xeqi7597
/
cds.claireduwig.com
/
wp-content
/
plugins
/
slim-seo
/
src
/
Integrations
📍 /home/xeqi7597/cds.claireduwig.com/wp-content/plugins/slim-seo/src/Integrations
🔄 Refresh
✏️
Editing: Elementor.php
Writable
<?php namespace SlimSEO\Integrations; class Elementor { public function is_active(): bool { return defined( 'ELEMENTOR_VERSION' ); } public function setup() { add_filter( 'slim_seo_post_types', [ $this, 'remove_post_types' ] ); remove_action( 'wp_head', 'hello_elementor_add_description_meta_tag' ); add_filter( 'slim_seo_no_post_content', [ $this, 'no_post_content' ], 1, 2 ); } public function remove_post_types( $post_types ) { $unsupported = [ 'elementor_library', 'e-floating-buttons', 'e-landing-page', ]; return array_diff_key( $post_types, array_flip( $unsupported ) ); } public function no_post_content( bool $skip, int $post_id ): bool { $post = get_post( $post_id ); if ( empty( $post ) ) { return true; } $elements = [ 'elementor-template', 'elementor_login', 'elementor_register', 'login_html_shortcode', ]; foreach ( $elements as $element ) { if ( str_contains( $post->post_content, $element ) ) { return true; } } return $skip; } }
💾 Save Changes
❌ Cancel