_wp_block_editor_posts_page_notice()WP 5.8.0

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.

Return

null. Nothing (null).

Usage

_wp_block_editor_posts_page_notice();

Changelog

Since 5.8.0 Introduced.

_wp_block_editor_posts_page_notice() code WP 6.5.2

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'
	);
}