PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 15.1
Jetpack – WP Security, Backup, Speed, & Growth v15.1
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
jetpack / modules / seo-tools.php

seo-tools.php in Jetpack – WP Security, Backup, Speed, & Growth 15.1, at modules/seo-tools.php

53 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Module Name: SEO Tools
4 * Module Description: Optimize titles, meta descriptions, and social previews for better search results.
5 * Sort Order: 35
6 * Recommendation Order: 15
7 * First Introduced: 4.4
8 * Requires Connection: No
9 * Requires User Connection: No
10 * Auto Activate: No
11 * Module Tags: Social, Appearance
12 * Feature: Traffic
13 * Additional Search Queries: search engine optimization, social preview, meta description, custom title format
14 *
15 * @package automattic/jetpack
16 */
17
18 if ( ! defined( 'ABSPATH' ) ) {
19 exit( 0 );
20 }
21
22 // Suppress SEO Tools output if any of the following plugins is active.
23 $jetpack_seo_conflicting_plugins = array(
24 'wordpress-seo/wp-seo.php',
25 'wordpress-seo-premium/wp-seo-premium.php',
26 'all-in-one-seo-pack/all_in_one_seo_pack.php',
27 'all-in-one-seo-pack-pro/all_in_one_seo_pack.php',
28 'seo-by-rank-math/rank-math.php',
29 'autodescription/autodescription.php',
30 'slim-seo/slim-seo.php',
31 'wp-seopress/seopress.php',
32 'wp-seopress-pro/seopress-pro.php',
33 'seo-key/seo-key.php',
34 'seo-key-pro/seo-key.php',
35 );
36
37 foreach ( $jetpack_seo_conflicting_plugins as $seo_plugin ) {
38 if ( Jetpack::is_plugin_active( $seo_plugin ) ) {
39 // Disable all custom meta tags that SEO tools manages.
40 add_filter( 'jetpack_disable_seo_tools', '__return_true' );
41
42 // Also disable default meta tags.
43 add_filter( 'jetpack_seo_meta_tags_enabled', '__return_false' );
44 break;
45 }
46 }
47
48 /** This filter is documented in modules/seo-tools/class-jetpack-seo-utils.php */
49 if ( ! apply_filters( 'jetpack_disable_seo_tools', false ) ) {
50 require_once __DIR__ . '/seo-tools/class-jetpack-seo.php';
51 new Jetpack_SEO();
52 }
53