block_widgets_no_javascript_message filter-hookWP 6.4.0

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

Usage

add_filter( 'block_widgets_no_javascript_message', 'wp_kama_block_widgets_no_javascript_message_filter', 10, 2 );

/**
 * Function for `block_widgets_no_javascript_message` filter-hook.
 * 
 * @param string $message   The message being displayed.
 * @param bool   $installed Whether the Classic Widget plugin is installed.
 *
 * @return string
 */
function wp_kama_block_widgets_no_javascript_message_filter( $message, $installed ){

	// filter...
	return $message;
}
$message(string)
The message being displayed.
$installed(true|false)
Whether the Classic Widget plugin is installed.

Changelog

Since 6.4.0 Introduced.

Where the hook is called

In file: /wp-admin/widgets-form-blocks.php
block_widgets_no_javascript_message
wp-admin/widgets-form-blocks.php 109
$message = apply_filters( 'block_widgets_no_javascript_message', $message, $installed );

Where the hook is used in WordPress

Usage not found.