get(); // First invalidate all licenses. array_map( array( $extension_list, 'invalidate' ), $extensions ); $extensions = new WPSEO_Extension_Manager(); $extensions->add( 'wordpress-seo-premium', new WPSEO_Extension( array( 'url' => WPSEO_Shortlinker::get( 'https://yoa.st/pe-premium-page' ), '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' ), 'image' => plugins_url( 'images/extensions-premium-ribbon.png?v=' . WPSEO_VERSION, WPSEO_FILE ), 'benefits' => array(), ) ) ); $extensions->add( 'wpseo-video', new WPSEO_Extension( array( 'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zx/' ), 'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zw/' ), 'title' => 'Video SEO', 'desc' => __( 'Optimize your videos to show them off in search results and get more clicks!', 'wordpress-seo' ), 'image' => plugins_url( 'images/extensions-video.png?v=' . WPSEO_VERSION, WPSEO_FILE ), 'benefits' => array( __( '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' ), ), ) ) ); $extensions->add( 'wpseo-news', new WPSEO_Extension( array( 'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zv/' ), 'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zu/' ), 'title' => 'News SEO', 'desc' => __( 'Are you in Google News? Increase your traffic from Google News by optimizing for it!', 'wordpress-seo' ), 'image' => plugins_url( 'images/extensions-news.png?v=' . WPSEO_VERSION, WPSEO_FILE ), 'benefits' => array( __( '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' ), ), ) ) ); if ( ! defined( 'WPSEO_LOCAL_WOOCOMMERCE_VERSION' ) ) { $extensions->add( 'wpseo-local', new WPSEO_Extension( array( 'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zt' ), 'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zs' ), 'title' => 'Local SEO', 'desc' => __( 'Rank better locally and in Google Maps, without breaking a sweat!', 'wordpress-seo' ), 'image' => plugins_url( 'images/extensions-local.png?v=' . WPSEO_VERSION, WPSEO_FILE ), 'benefits' => array( __( 'Get found by potential clients', 'wordpress-seo' ), __( 'Easily insert Google Maps, a store locator, opening hours and more', 'wordpress-seo' ), __( 'Improve the usability of your contact page', 'wordpress-seo' ), ), ) ) ); } $extensions->add( 'wpseo-local-woocommerce', new WPSEO_Extension( array( 'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/272' ), 'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/273' ), 'title' => 'Local SEO for WooCommerce', 'desc' => __( 'Rank better locally and in Google Maps, without breaking a sweat!', 'wordpress-seo' ), 'image' => plugins_url( 'images/extensions-local-for-woocommerce.png?v=' . WPSEO_VERSION, WPSEO_FILE ), 'benefits' => array( esc_html__( 'Get better search results in local search', 'wordpress-seo' ), esc_html__( 'Enhance your contact pages with Google Maps, opening hours and a store locator', 'wordpress-seo' ), /* translators: %1$s expands to WooCommerce */ sprintf( esc_html__( 'Allow customers to pick up their %s order locally', 'wordpress-seo' ), 'WooCommerce' ), ), ) ) ); // Add Yoast WooCommerce SEO when WooCommerce is active. if ( WPSEO_Utils::is_woocommerce_active() ) { $extensions->add( 'wpseo-woocommerce', new WPSEO_Extension( array( 'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zr' ), 'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zq' ), 'title' => 'Yoast WooCommerce 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/extensions-woo.png?v=' . WPSEO_VERSION, WPSEO_FILE ), 'benefits' => array( sprintf( __( 'Improve sharing on 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', ) ) ); } /* translators: %1$s expands to Yoast SEO. */ $wpseo_extensions_header = sprintf( __( '%1$s Extensions', 'wordpress-seo' ), 'Yoast SEO' ); ?>

get( 'wordpress-seo-premium' ); $extensions->remove( 'wordpress-seo-premium' ); ?>

' . $extension->get_title() . '' ); ?>

is_activated( 'wordpress-seo-premium' ) ) : ?>
is_installed( $extension->get_title() ) ) : ?>
is_activated( 'wordpress-seo-premium' ) ) : ?>
get_title() ); ?> ', '', $extension->get_title() ); ?> is_activated( 'wordpress-seo-premium' ) ) { ?>

' . $yoast_seo_extensions . ''; /* translators: %1$s expands to Yoast SEO extensions */ printf( __( '%1$s to optimize your site even further', 'wordpress-seo' ), $yoast_seo_extensions ); ?>

get_all() as $id => $extension ) : ?>

get_title() ); ?>

    get_benefits() as $benefit ) : ?>
is_installed( $extension->get_title() ) ) : ?>
is_activated( $id ) ) : ?>
get_buy_button() ); ?> ', '', $extension->get_title() ); ?>