browse-happy-notice

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

Description

apply_filters( 'browse-happy-notice', (string) $notice, (array) $response ); 

Parameters (2)

0. $notice (string)
The notice content.
1. $response (array)
An array containing web browser information.

Usage

To run the hook, copy the example below.
  1. $notice = apply_filters( 'browse-happy-notice', $notice, $response ); 
  2.  
  3. if ( !empty( $notice ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the browse-happy-notice callback 
  2. function filter_browse_happy_notice( $notice, $response ) { 
  3. // make filter magic happen here... 
  4. return $notice
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'browse-happy-notice', 'filter_browse_happy_notice', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'browse-happy-notice', 'filter_browse_happy_notice', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-admin/includes/dashboard.php  
  1. echo apply_filters( 'browse-happy-notice', $notice, $response );