admin_notices

Prints admin screen notices.

Description

add_action( 'admin_notices', (callback) $array ); 

Parameters (1)

0. $array (callback) => array( self::$instance, 'monsterinsights_wp_notice' )
The array.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'admin_notices', $array ); 
The following example is for adding a hook callback.
  1. // define the admin_notices callback 
  2. function action_admin_notices( $array ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'admin_notices', 'action_admin_notices', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'admin_notices', 'action_admin_notices', 10, 1 ); 

Defined (9)

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

/googleanalytics.php  
  1. add_action( 'admin_notices', array( self::$instance, 'monsterinsights_wp_notice' ) ); 
  1. add_action( 'admin_notices', array( self::$instance, 'monsterinsights_pro_notice' ) ); 
  1. add_action( 'admin_notices', array( self::$instance, 'monsterinsights_old_ecommerce' ) ); 
/includes/admin/google.php  
  1. add_action( 'admin_notices', array( $this, 'monsterinsights_show_admin_config_empty_notice' ) ); 
  1. add_action( 'admin_notices', array( $this, 'monsterinsights_show_admin_config_expired_notice' ) ); 
  1. add_action( 'admin_notices', array( $this, 'monsterinsights_show_admin_config_needs_permissions_notice' ) ); 
  1. add_action( 'admin_notices', array( $this, 'monsterinsights_show_admin_config_blocked_notice' ) ); 
/includes/admin/licensing/license.php  
  1. add_action( 'admin_notices', array( $this, 'monsterinsights_notices' ) ); 
/includes/admin/tracking.php  
  1. add_action( 'admin_notices', array( $this, 'monsterinsights_admin_notice' ) );