postbox_classes_dashboard_dashboard_browser_nag

The WordPress Core postbox classes dashboard browser nag hook.

Description

add_filter( 'postbox_classes_dashboard_dashboard_browser_nag', (string) $dashboard_browser_nag_class ); 

Parameters (1)

0. $dashboard_browser_nag_class (string) => 'dashboard_browser_nag_class'
The dashboard browser nag class.

Usage

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

Defined (1)

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

/wp-admin/includes/dashboard.php  
  1. add_filter( 'postbox_classes_dashboard_dashboard_browser_nag', 'dashboard_browser_nag_class' );