Equivalent of edit_form_after_title hook in WP5+
-
Hi all –
I’ve been trying to use the edit_form_after_title hook in WordPress 5.2.3, stupidly not realising that it has been deprecated for some time. After some searching I see mention of some WP core errors throwing this message:
edit_form_advanced is deprecated since version 5.0.0! Use block_editor_meta_box_hidden_fields instead. This action is still supported in the classic editor, but is deprecated in the block editor.
That’s cool and I understand what that means, but the block_editor_meta_box_hidden_fields docs says this:
Add hidden input fields to the meta box save form.
That’s not what I want to do. I want to add a banner that only appears on the Add/Edit Post pages, similar to the way I can with the admin_notices hook now.
Is there a way to do that in WP5/without disabling Gutenberg?
I’ve checked through the Code Reference but couldn’t see anything there. I’m not sure what I’m looking for, though, so have probably just missed it.
Thanks
- The topic ‘Equivalent of edit_form_after_title hook in WP5+’ is closed to new replies.