browse-happy-notice filter-hookWP 3.2.0

Filters the notice output for the 'Browse Happy' nag meta box.

Usage

add_filter( 'browse-happy-notice', 'wp_kama_browse_happy_notice_filter', 10, 2 );

/**
 * Function for `browse-happy-notice` filter-hook.
 * 
 * @param string      $notice   The notice content.
 * @param array|false $response An array containing web browser information, or false on failure. See `wp_check_browser_version()`.
 *
 * @return string
 */
function wp_kama_browse_happy_notice_filter( $notice, $response ){

	// filter...
	return $notice;
}
$notice(string)
The notice content.
$response(array|false)
An array containing web browser information, or false on failure. See wp_check_browser_version().

Changelog

Since 3.2.0 Introduced.

Where the hook is called

wp_dashboard_browser_nag()
browse-happy-notice
wp-admin/includes/dashboard.php 1734
echo apply_filters( 'browse-happy-notice', $notice, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

Where the hook is used in WordPress

Usage not found.