block_editor_meta_box_hidden_fields WordPress Action Hook
The block_editor_meta_box_hidden_fields hook is used to add hidden fields to the block editor meta box. These hidden fields can be used to store data that is needed by the block editor, but should not be visible to the user.
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. |