block_editor_meta_box_hidden_fields action-hookWP 5.0.0

Adds 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', 'wp_kama_block_editor_meta_box_hidden_fields_action' );

/**
 * Function for `block_editor_meta_box_hidden_fields` action-hook.
 * 
 * @param WP_Post $post The post that is being edited.
 *
 * @return void
 */
function wp_kama_block_editor_meta_box_hidden_fields_action( $post ){

	// action...
}
$post(WP_Post)
The post that is being edited.

Changelog

Since 5.0.0 Introduced.

Where the hook is called

the_block_editor_meta_box_post_form_hidden_fields()
block_editor_meta_box_hidden_fields
wp-admin/includes/post.php 2591
do_action( 'block_editor_meta_box_hidden_fields', $post );

Where the hook is used in WordPress

Usage not found.