block_editor_no_javascript_message
Filters the message displayed in the block editor interface when JavaScript is not enabled in the browser.
Использование
add_filter( 'block_editor_no_javascript_message', 'wp_kama_block_editor_no_javascript_message_filter', 10, 3 ); /** * Function for `block_editor_no_javascript_message` filter-hook. * * @param string $message The message being displayed. * @param WP_Post $post The post being edited. * @param bool $installed Whether the classic editor is installed. * * @return string */ function wp_kama_block_editor_no_javascript_message_filter( $message, $post, $installed ){ // filter... return $message; }
- $message(строка)
- The message being displayed.
- $post(WP_Post)
- The post being edited.
- $installed(true|false)
- Whether the classic editor is installed.
Список изменений
С версии 5.0.3 | Введена. |
С версии 6.4.0 | Added $installed parameter. |
Где вызывается хук
В файле: /wp-admin/edit-form-blocks.php
block_editor_no_javascript_message
wp-admin/edit-form-blocks.php 384
$message = apply_filters( 'block_editor_no_javascript_message', $message, $post, $installed );