Action hook 'network_admin_notices'

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

View Source

network_admin_notices

Action Hook
Description
Prints network admin screen notices.

Hook Information

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

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

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

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

Source Code Context

wp-admin/admin-header.php:299 - How this hook is used in WordPress core
<?php
 294  	/**
 295  	 * Prints network admin screen notices.
 296  	 *
 297  	 * @since 3.1.0
 298  	 */
 299  	do_action( 'network_admin_notices' );
 300  } elseif ( is_user_admin() ) {
 301  	/**
 302  	 * Prints user admin screen notices.
 303  	 *
 304  	 * @since 3.1.0

PHP Documentation

<?php
/**
	 * Prints network 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.