do_action( 'block_editor_meta_box_hidden_fields', WP_Post $post )
Adds hidden input fields to the meta box save form.
Description
Hook into this action to print <input type="hidden" ... />
fields, which will be POSTed back to the server when meta boxes are saved.
Parameters
- $post
-
(WP_Post) The post that is being edited.
Source
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |
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