Action hook 'user_admin_notices'

in WP Core File wp-admin/admin-header.php at line 306

View Source

user_admin_notices

Action Hook
Description
Prints user admin screen notices.

Hook Information

File Location wp-admin/admin-header.php View on GitHub
Hook Type Action
Line Number 306

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into user_admin_notices
add_action('user_admin_notices', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-admin/admin-header.php:306 - How this hook is used in WordPress core
<?php
 301  	/**
 302  	 * Prints user admin screen notices.
 303  	 *
 304  	 * @since 3.1.0
 305  	 */
 306  	do_action( 'user_admin_notices' );
 307  } else {
 308  	/**
 309  	 * Prints admin screen notices.
 310  	 *
 311  	 * @since 3.1.0

PHP Documentation

<?php
/**
	 * Prints user admin screen notices.
	 *
	 * @since 3.1.0
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-admin/admin-header.php
Related Hooks

Related hooks will be displayed here in future updates.