WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
1047 | $locale = get_locale(); |
1048 | if ( 'en_US' !== $locale ) |
1049 | $browsehappy = add_query_arg( 'locale', $locale, $browsehappy ); |
1050 |
|
1051 | $notice .= '<p>' . sprintf( __( '<a href="%1$s" class="update-browser-link">Update %2$s</a> or learn how to <a href="%3$s" class="browse-happy-link">browse happy</a>' ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ), esc_url( $browsehappy ) ) . '</p>'; |
1052 | $notice .= '<p class="hide-if-no-js"><a href="" class="dismiss">' . __( 'Dismiss' ) . '</a></p>'; |
1053 | $notice .= '<div class="clear"></div>'; |
1054 | } |
1055 |
|
1056 | echo apply_filters( 'browse-happy-notice', $notice, $response ); |
1057 | } |
1058 |
|
1059 | function dashboard_browser_nag_class( $classes ) { |
1060 | $response = wp_check_browser_version(); |
1061 |
|
1062 | if ( $response && $response['insecure'] ) |
1063 | $classes[] = 'browser-insecure'; |
1064 |
|
1065 | return $classes; |