do_action( 'block_editor_meta_box_hidden_fields' )
Add hidden input fields to the meta box save form.
Description Description
Hook into this action to print <input type="hidden" ... />
fields, which will be POSTed back to the server when meta boxes are saved.
Source Source
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
In
save_post
hook, to check if the post is published via gutenberg, use thisthen inside
save_post
callback, use