WPSEO_Shortlinker::get( 'https://yoa.st/zz' ), 'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zy' ), 'title' => 'Yoast SEO Premium', /* translators: %1$s expands to Yoast SEO */ 'desc' => sprintf( __( 'The premium version of %1$s with more features & support.', 'wordpress-seo' ), 'Yoast SEO' ), 'benefits' => [], ]; $extensions = [ WPSEO_Addon_Manager::LOCAL_SLUG => [ 'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zt' ), 'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zs' ), 'title' => 'Local SEO', 'display_title' => __( 'Stop losing customers to other local businesses', 'wordpress-seo' ), 'desc' => __( 'Rank better locally and in Google Maps, without breaking a sweat!', 'wordpress-seo' ), 'image' => plugins_url( 'images/local_plugin_assistant.svg?v=' . WPSEO_VERSION, WPSEO_FILE ), 'benefits' => [ __( 'Get better search results in local search', 'wordpress-seo' ), __( 'Easily insert Google Maps, a store locator, opening hours and more', 'wordpress-seo' ), /* translators: %1$s expands to WooCommerce */ sprintf( __( 'Allow customers to pick up their %s order locally', 'wordpress-seo' ), 'WooCommerce' ), ], ], WPSEO_Addon_Manager::VIDEO_SLUG => [ 'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zx/' ), 'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zw/' ), 'title' => 'Video SEO', 'display_title' => __( 'Start ranking better for your videos', 'wordpress-seo' ), 'desc' => __( 'Optimize your videos to show them off in search results and get more clicks!', 'wordpress-seo' ), 'image' => plugins_url( 'images/video_plugin_assistant.svg?v=' . WPSEO_VERSION, WPSEO_FILE ), 'benefits' => [ __( 'Show your videos in Google Videos', 'wordpress-seo' ), __( 'Enhance the experience of sharing posts with videos', 'wordpress-seo' ), __( 'Make videos responsive through enabling fitvids.js', 'wordpress-seo' ), ], ], WPSEO_Addon_Manager::NEWS_SLUG => [ 'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zv/' ), 'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zu/' ), 'title' => 'News SEO', 'display_title' => __( 'Everything you need for Google News', 'wordpress-seo' ), 'desc' => __( 'Are you in Google News? Increase your traffic from Google News by optimizing for it!', 'wordpress-seo' ), 'image' => plugins_url( 'images/news_plugin_assistant.svg?v=' . WPSEO_VERSION, WPSEO_FILE ), 'benefits' => [ __( 'Optimize your site for Google News', 'wordpress-seo' ), __( 'Immediately pings Google on the publication of a new post', 'wordpress-seo' ), __( 'Creates XML News Sitemaps', 'wordpress-seo' ), ], ], ]; // Add Yoast WooCommerce SEO when WooCommerce is active. if ( YoastSEO()->helpers->woocommerce->is_active() ) { $extensions[ WPSEO_Addon_Manager::WOOCOMMERCE_SLUG ] = [ 'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zr' ), 'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zq' ), 'title' => 'Yoast WooCommerce SEO', 'display_title' => __( 'Make your products stand out in Google', 'wordpress-seo' ), /* translators: %1$s expands to Yoast SEO */ 'desc' => sprintf( __( 'Seamlessly integrate WooCommerce with %1$s and get extra features!', 'wordpress-seo' ), 'Yoast SEO' ), 'image' => plugins_url( 'images/woo_plugin_assistant.svg?v=' . WPSEO_VERSION, WPSEO_FILE ), 'benefits' => [ sprintf( __( 'Improve sharing on Facebook and Pinterest', 'wordpress-seo' ) ), /* translators: %1$s expands to Yoast, %2$s expands to WooCommerce */ sprintf( __( 'Use %1$s breadcrumbs instead of %2$s ones', 'wordpress-seo' ), 'Yoast', 'WooCommerce' ), /* translators: %1$s expands to Yoast SEO, %2$s expands to WooCommerce */ sprintf( __( 'A seamless integration between %1$s and %2$s', 'wordpress-seo' ), 'Yoast SEO', 'WooCommerce' ), ], 'buy_button' => 'WooCommerce SEO', ]; } $addon_manager = new WPSEO_Addon_Manager(); $has_valid_premium_subscription = YoastSEO()->helpers->product->is_premium() && $addon_manager->has_valid_subscription( WPSEO_Addon_Manager::PREMIUM_SLUG ); /* translators: %1$s expands to Yoast SEO. */ $wpseo_extensions_header = sprintf( __( '%1$s Extensions', 'wordpress-seo' ), 'Yoast SEO' ); $new_tab_message = sprintf( '%1$s', esc_html__( '(Opens in a new browser tab)', 'wordpress-seo' ) ); ?>

' . $premium_extension['title'] . '' ); ?>

is_installed( WPSEO_Addon_Manager::PREMIUM_SLUG ) ) : ?>
'; ?> ', '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class. $premium_extension['title'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped. echo $new_tab_message; ?>

' . $yoast_seo_extensions . ''; printf( /* translators: 1: expands to Yoast SEO extensions */ esc_html__( '%1$s to optimize your site even further', 'wordpress-seo' ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $yoast_seo_extensions is properly escaped. $yoast_seo_extensions ); ?>

$extension ) : ?>