block_editor_no_javascript_message filter-hookWP 5.0.3

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

Usage

add_filter( 'block_editor_no_javascript_message', 'wp_kama_block_editor_no_javascript_message_filter', 10, 2 );

/**
 * Function for `block_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_block_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 5.0.3 Introduced.

Where the hook is called

In file: /wp-admin/edit-form-blocks.php
block_editor_no_javascript_message
wp-admin/edit-form-blocks.php 338
echo apply_filters( 'block_editor_no_javascript_message', $message, $post );

Where the hook is used in WordPress

Usage not found.