yoast_ga_extenstion_notice

Show a notice in the admin.

Description

yoast_ga_extenstion_notice( (string) $message ); 

Parameters (1)

0. $message (string)
The message.

Usage

  1. if ( !function_exists( 'yoast_ga_extenstion_notice' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-by-monsterinsights/googleanalytics.php'; 
  3.  
  4. // The message. 
  5. $message = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = yoast_ga_extenstion_notice($message); 
  9.  

Defined (1)

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

/googleanalytics.php  
  1. function yoast_ga_extenstion_notice( $message ) { 
  2. add_action( 'admin_notices', create_function( $message, 'echo \'<div class="error"><p>\' . __( \'Activation failed:\', \'google-analytics-for-wordpress\' ) . \' \' . $message . \'</p></div>\';' ) ); 
  3. deactivate_plugins( plugin_basename( GAWP_FILE ) ); 
  4. if ( isset( $_GET['activate'] ) ) { 
  5. unset( $_GET['activate'] );