%s: %s

', esc_html__( 'Advanced Custom CSS for Elementor', 'advanced-custom-css-for-elementor' ), esc_html__( 'This plugin requires "Elementor" to be installed and activated.', 'advanced-custom-css-for-elementor' ) ); } ); } // Conflicting plugin check: admin only, so the front end is not affected. if ( ! is_admin() ) { return; } include_once ABSPATH . 'wp-admin/includes/plugin.php'; $conflicting_plugins = [ 'custom-css-for-elementor/custom-css-for-elementor.php' => 'Custom CSS for Elementor', ]; foreach ( $conflicting_plugins as $plugin_path => $plugin_name ) { if ( ! is_plugin_active( $plugin_path ) ) { continue; } add_action( 'admin_notices', function () use ( $plugin_name ) { if ( ! current_user_can( 'activate_plugins' ) ) { return; } printf( '

%s: %s

', esc_html__( 'Advanced Custom CSS for Elementor', 'advanced-custom-css-for-elementor' ), sprintf( /* translators: %s: name of the conflicting plugin. */ esc_html__( '"%s" may conflict with this plugin. Some features might not work as expected.', 'advanced-custom-css-for-elementor' ), esc_html( $plugin_name ) ) ); } ); } }, 20 );