I want to make a featured image required. For starters i am trying to show an error message after update or post buttons are pressed. The problem is that the notices which i try to include don't show up. For example
function my_admin_notice(){
global $pagenow;
if ( $pagenow == 'post.php' ) {
echo '<div class="updated">
<p>This notice only appears on the plugins page.</p>
</div>';
}
}
add_action('admin_notices', 'my_admin_notice');
Whatever notice i try to display in specific post admin screen it doesn't show. Could the problem be in the new Gutenberg editor?
Edit: Yes, when Gutenberg is active the notices don't show up. If i add filter to block the editor, then the messages are displayed. So, how can i make notices to shows in the Gutenberg editor too?