• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Yoast SEO a2z

Yoast SEO a2z

WordPress SEO a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / WPML_WPSEO_Notification::get_notification() – Generates the notification to show to the user when WPML is installed, but the Yoast SEO Multilingual plugin is not.

You appear to be a bot. Output may be restricted

Description

Generates the notification to show to the user when WPML is installed, but the Yoast SEO Multilingual plugin is not.

Usage

$Yoast_Notification = WPML_WPSEO_Notification::get_notification();

Parameters

Returns

Yoast_Notification The notification.

Source

File name: wordpress-seo/src/integrations/third-party/wpml-wpseo-notification.php
Lines:

1 to 14 of 14
  protected function get_notification() {
    return new Yoast_Notification(
      \sprintf(
        /* translators: %1$s expands to an opening anchor tag, %2$s expands to an closing anchor tag. */
        \__( 'We notice that you have installed WPML. To make sure your canonical URLs are set correctly, %1$sinstall and activate the Yoast SEO Multilingual add-on%2$s as well!', 'wordpress-seo' ),
        '<a href="' . \esc_url( $this->short_link_helper->get( 'https://yoa.st/wpml-yoast-seo' ) ) . '" target="_blank">',
        '</a>'
      ),
      [
        'id'   => self::NOTIFICATION_ID,
        'type' => Yoast_Notification::WARNING,
      ]
    );
  }
 

 View on GitHub View on Trac

Published: 22nd February 2021 | Last updated: 22nd February 2021

Primary Sidebar

Information

Function name: WPML_WPSEO_Notification::get_notification
Class ref: WPML_WPSEO_Notification
Plugin ref: Yoast SEO
Version: 19.1
Sourcefile: src/integrations/third-party/wpml-wpseo-notification.php
File ref: src/integrations/third-party/wpml-wpseo-notification.php
Deprecated?: No
API Letters: G,N,W

Footer

Yoast SEO a2z
Yoast SEO a2z
WordPress SEO a2z
WordPress 6.0
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wordpress-seo.wp-a2z.org
© Copyright Yoast SEO a2z 2017-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites