block_editor_meta_box_hidden_fields action-hook . WP 5.0.0
Add hidden input fields to the meta box save form.
Hook into this action to print <input type="hidden" ... /> fields, which will be POSTed back to the server when meta boxes are saved.
Usage
add_action( 'block_editor_meta_box_hidden_fields', 'action_function_name_1092' ); function action_function_name_1092( $post ){ // action... }
- $post(WP_Post)
- The post that is being edited.
Changelog
Since 5.0.0 | Introduced. |
Where the hook is called
wp-admin/includes/post.php 2476
do_action( 'block_editor_meta_box_hidden_fields', $post );