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
if ( !function_exists( 'yoast_ga_extenstion_notice' ) ) { require_once ABSPATH . PLUGINDIR . 'google-analytics-by-yoast/googleanalytics.php'; } // The message. $message = ''; // NOTICE! Understand what this does before running. $result = yoast_ga_extenstion_notice($message);
Defined (1)
The function is defined in the following location(s).
- /googleanalytics.php
- function yoast_ga_extenstion_notice( $message ) {
- add_action( 'admin_notices', create_function( $message, 'echo \'<div class="error"><p>\' . __( \'Activation failed:\', \'google-analytics-for-wordpress\' ) . \' \' . $message . \'</p></div>\';' ) );
- deactivate_plugins( plugin_basename( GAWP_FILE ) );
- if ( isset( $_GET['activate'] ) ) {
- unset( $_GET['activate'] );
- }
- }