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 |
|---|---|
| 187 | /** |
| 188 | * Filters the message displayed in the site editor interface when JavaScript is |
| 189 | * not enabled in the browser. |
| 190 | * |
| 191 | * @since 6.3.0 |
| 192 | * |
| 193 | * @param string $message The message being displayed. |
| 194 | * @param WP_Post $post The post being edited. |
| 195 | */ |
| 196 | $message = apply_filters( 'site_editor_no_javascript_message', __( 'The site editor requires JavaScript. Please enable JavaScript in your browser settings.' ), $post ); |
| 197 | wp_admin_notice( |
| 198 | $message, |
| 199 | array( |
| 200 | 'type' => 'error', |
| 201 | 'additional_classes' => array( 'hide-if-js' ), |
| 202 | ) |
| 203 | ); |
| 204 | ?> |
| 205 | </div> |