dashboard_browser_nag_class()
Adds an additional class to the browser nag if the current version is insecure.
No Hooks.
Return
String[]
. Modified array of meta box classes.
Usage
dashboard_browser_nag_class( $classes );
- $classes(string[]) (required)
- Array of meta box classes.
Changelog
Since 3.2.0 | Introduced. |
dashboard_browser_nag_class() dashboard browser nag class code WP 6.6.2
function dashboard_browser_nag_class( $classes ) { $response = wp_check_browser_version(); if ( $response && $response['insecure'] ) { $classes[] = 'browser-insecure'; } return $classes; }