canonical-urls
3 months ago
carousel
1 month ago
comment-likes
7 months ago
comments
1 month ago
custom-post-types
2 weeks ago
external-media
7 months ago
google-fonts
2 weeks ago
gravatar
6 years ago
infinite-scroll
2 weeks ago
likes
2 weeks ago
markdown
1 month ago
memberships
2 days ago
photon-cdn
2 days ago
plugin-search
2 months ago
post-by-email
7 months ago
related-posts
1 week ago
scan
3 months ago
seo-tools
2 weeks ago
sharedaddy
1 month ago
shortcodes
1 week ago
shortlinks
1 week ago
simple-payments
7 months ago
site-icon
7 months ago
sitemaps
1 month ago
stats
6 months ago
subscriptions
2 days ago
theme-tools
2 weeks ago
tiled-gallery
1 month ago
verification-tools
1 month ago
videopress
2 days ago
widget-visibility
1 month ago
widgets
2 weeks ago
woocommerce-analytics
2 months ago
wordads
2 weeks ago
wpcom-tos
6 months ago
account-protection.php
3 months ago
blaze.php
7 months ago
blocks.php
7 months ago
canonical-urls.php
4 months ago
carousel.php
7 months ago
comment-likes.php
7 months ago
comments.php
3 months ago
contact-form.php
7 months ago
copy-post.php
1 month ago
custom-content-types.php
3 months ago
google-fonts.php
2 months ago
gravatar-hovercards.php
1 month ago
infinite-scroll.php
7 months ago
json-api.php
7 months ago
latex.php
1 month ago
likes.php
2 months ago
markdown.php
7 months ago
module-extras.php
7 months ago
module-headings.php
2 weeks ago
module-info.php
4 months ago
monitor.php
1 month ago
notes.php
2 weeks ago
photon-cdn.php
7 months ago
photon.php
7 months ago
plugin-search.php
2 weeks ago
podcast.php
1 week ago
post-by-email.php
3 months ago
post-list.php
7 months ago
protect.php
3 months ago
publicize.php
7 months ago
related-posts.php
1 month ago
search.php
7 months ago
seo-tools.php
2 weeks ago
sharedaddy.php
4 months ago
shortcodes.php
7 months ago
shortlinks.php
1 month ago
simple-payments.php
7 months ago
sitemaps.php
7 months ago
sso.php
2 weeks ago
stats.php
1 month ago
subscriptions.php
2 weeks ago
theme-tools.php
7 months ago
tiled-gallery.php
7 months ago
vaultpress.php
7 months ago
verification-tools.php
3 months ago
videopress.php
7 months ago
waf.php
7 months ago
widget-visibility.php
7 months ago
widgets.php
7 months ago
woocommerce-analytics.php
7 months ago
wordads.php
7 months ago
wpcom-reader.php
4 months ago
wpgroho.js
1 year ago
seo-tools.php
56 lines
| 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, seo, sitemap, open graph, search engine, title tag |
| 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 | require_once __DIR__ . '/seo-tools/class-jetpack-seo-admin-columns.php'; |
| 54 | Jetpack_SEO_Admin_Columns::init(); |
| 55 | } |
| 56 |