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.


Top ↑

Parameters

$post

(WP_Post)The post that is being edited.


Top ↑

Source

File: wp-admin/includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More