WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Action Reference/network admin notices

Description

network_admin_notices is a hook triggered to output notices when a user is in the Network admin section (for multi site installs).

Usage

<?php add_action('network_admin_notices', callable); ?>

where callable is the function or other callable to be registered.

Parameters

None

Example

<?php
function my_network_admin_notices() {
	echo '<div class="update-nag">Configuration of Foo is not complete!</div>';
}
add_action( 'network_admin_notices',  'my_network_admin_notices' );
?>

Source File

wp-admin/admin-header.php