user_admin_notices
Prints user admin screen notices.
Description
do_action( 'user_admin_notices' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'user_admin_notices' );
- The following example is for adding a hook callback.
- // define the user_admin_notices callback
- function action_user_admin_notices( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'user_admin_notices', 'action_user_admin_notices', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'user_admin_notices', 'action_user_admin_notices', 10, 0 );
Defined (2)
The action is defined in the following location(s).
- /wp-admin/admin-header.php
- do_action( 'user_admin_notices' );
- /wp-admin/includes/ms-admin-filters.php
- add_action( 'user_admin_notices', 'new_user_email_admin_notice' );