site_editor_no_javascript_message filter-hookWP 6.3.0

Filters the message displayed in the site editor interface when JavaScript is not enabled in the browser.

Usage

add_filter( 'site_editor_no_javascript_message', 'wp_kama_site_editor_no_javascript_message_filter', 10, 2 );

/**
 * Function for `site_editor_no_javascript_message` filter-hook.
 * 
 * @param string  $message The message being displayed.
 * @param WP_Post $post    The post being edited.
 *
 * @return string
 */
function wp_kama_site_editor_no_javascript_message_filter( $message, $post ){

	// filter...
	return $message;
}
$message(string)
The message being displayed.
$post(WP_Post)
The post being edited.

Changelog

Since 6.3.0 Introduced.

Where the hook is called

In file: /wp-admin/site-editor.php
site_editor_no_javascript_message
wp-admin/site-editor.php 327
$message = apply_filters( 'site_editor_no_javascript_message', __( 'The site editor requires JavaScript. Please enable JavaScript in your browser settings.' ), $post );

Where the hook is used in WordPress

Usage not found.