yoast_wpseo_activation_failed_notice

Echo's the Activation failed notice with any given message.

Description

yoast_wpseo_activation_failed_notice( (string) $message ); 

Parameters (1)

0. $message (string)
Message string.

Usage

  1. if ( !function_exists( 'yoast_wpseo_activation_failed_notice' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/wp-seo-main.php'; 
  3.  
  4. // Message string. 
  5. $message = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = yoast_wpseo_activation_failed_notice($message); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-seo-main.php  
  1. function yoast_wpseo_activation_failed_notice( $message ) { 
  2. echo '<div class="error"><p>' . __( 'Activation failed:', 'wordpress-seo' ) . ' ' . $message . '</p></div>';