apply_filters( 'site_editor_no_javascript_message', string $message, WP_Post $post )
- Since
- 6.3.0
Filters the message displayed in the site editor interface when JavaScript is not enabled in the browser.
Compatibility
- WordPress
- since 6.3.0
- 6.7.10
- 6.8.11
- 6.9.10
- 7.0.7
- 7.1.3
Present in every tracked release (6.7.10 to 7.1.3).
Parameters
$messagestring- The message being displayed.
$postWP_Post- The post being edited.
Where this hook fires · 1
wp-admin/site-editor.php:196file scope
Source code
* * @since 6.3.0 * * @param string $message The message being displayed. * @param WP_Post $post The post being edited. */ $message = apply_filters( 'site_editor_no_javascript_message', __( 'The site editor requires JavaScript. Please enable JavaScript in your browser settings.' ), $post ); wp_admin_notice( $message, array( 'type' => 'error', 'additional_classes' => array( 'hide-if-js' ), )Changelog
Introduced in 6.3.0. Unchanged from 6.7.10 through 7.1.3.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.10 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.