_wp_block_editor_posts_page_notice()
Outputs a notice when editing the page for posts in the block editor (internal use only).
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
No Hooks.
Returns
null
. Nothing (null).
Usage
_wp_block_editor_posts_page_notice();
Changelog
Since 5.8.0 | Introduced. |
_wp_block_editor_posts_page_notice() wp block editor posts page notice code WP 6.8.1
function _wp_block_editor_posts_page_notice() { wp_add_inline_script( 'wp-notices', sprintf( 'wp.data.dispatch( "core/notices" ).createWarningNotice( "%s", { isDismissible: false } )', __( 'You are currently editing the page that shows your latest posts.' ) ), 'after' ); }