admin_notices
Prints admin screen notices.
Description
Parameters (1)
- 0. $array (callback) =>
array( self::$instance, 'monsterinsights_wp_notice' )
- The array.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'admin_notices', $array );
- The following example is for adding a hook callback.
- // define the admin_notices callback
- function action_admin_notices( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'admin_notices', 'action_admin_notices', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'admin_notices', 'action_admin_notices', 10, 1 );
Defined (9)
The action is defined in the following location(s).
- /googleanalytics.php
- add_action( 'admin_notices', array( self::$instance, 'monsterinsights_wp_notice' ) );
- add_action( 'admin_notices', array( self::$instance, 'monsterinsights_pro_notice' ) );
- add_action( 'admin_notices', array( self::$instance, 'monsterinsights_old_ecommerce' ) );
- /includes/admin/google.php
- add_action( 'admin_notices', array( $this, 'monsterinsights_show_admin_config_empty_notice' ) );
- add_action( 'admin_notices', array( $this, 'monsterinsights_show_admin_config_expired_notice' ) );
- add_action( 'admin_notices', array( $this, 'monsterinsights_show_admin_config_needs_permissions_notice' ) );
- add_action( 'admin_notices', array( $this, 'monsterinsights_show_admin_config_blocked_notice' ) );
- /includes/admin/licensing/license.php
- add_action( 'admin_notices', array( $this, 'monsterinsights_notices' ) );
- /includes/admin/tracking.php
- add_action( 'admin_notices', array( $this, 'monsterinsights_admin_notice' ) );