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 |
|---|---|
| 164 | /** |
| 165 | * Filters the message displayed in the site editor interface when JavaScript is |
| 166 | * not enabled in the browser. |
| 167 | * |
| 168 | * @since 6.3.0 |
| 169 | * |
| 170 | * @param string $message The message being displayed. |
| 171 | * @param WP_Post $post The post being edited. |
| 172 | */ |
| 173 | $message = apply_filters( 'site_editor_no_javascript_message', __( 'The site editor requires JavaScript. Please enable JavaScript in your browser settings.' ), $post ); |
| 174 | wp_admin_notice( |
| 175 | $message, |
| 176 | array( |
| 177 | 'type' => 'error', |
| 178 | 'additional_classes' => array( 'hide-if-js' ), |
| 179 | ) |
| 180 | ); |
| 181 | ?> |
| 182 | </div> |