site_editor_no_javascript_message
Filter HookDescription
Filters the message displayed in the site editor interface when JavaScript is not enabled in the browser.Hook Information
| File Location | wp-admin/site-editor.phpView on GitHub | 
| Hook Type | Filter | 
| Line Number | 327 | 
Hook Parameters
| Type | Name | Description | 
|---|---|---|
| string | $message | The message being displayed. | 
| WP_Post | $post | The post being edited. | 
Usage Examples
                        Basic Usage
                    
                    <?php
// Hook into site_editor_no_javascript_message
add_filter('site_editor_no_javascript_message', 'my_custom_filter', 10, 2);
function my_custom_filter($message, $post) {
    // Your custom filtering logic here
    return $message;
}
Source Code Context
                        wp-admin/site-editor.php:327
                        - How this hook is used in WordPress core
                    
                    <?php
 322  		 * @since 6.3.0
 323  		 *
 324  		 * @param string  $message The message being displayed.
 325  		 * @param WP_Post $post    The post being edited.
 326  		 */
 327  		$message = apply_filters( 'site_editor_no_javascript_message', __( 'The site editor requires JavaScript. Please enable JavaScript in your browser settings.' ), $post );
 328  		wp_admin_notice(
 329  			$message,
 330  			array(
 331  				'type'               => 'error',
 332  				'additional_classes' => array( 'hide-if-js' ),
PHP Documentation
<?php
/**
		 * Filters the message displayed in the site editor interface when JavaScript is
		 * not enabled in the browser.
		 *
		 * @since 6.3.0
		 *
		 * @param string  $message The message being displayed.
		 * @param WP_Post $post    The post being edited.
		 */
                        Quick Info
                    
                    - Hook Type: Filter
- Parameters: 2
- File: wp-admin/site-editor.php
                        Related Hooks
                    
                    Related hooks will be displayed here in future updates.
