wpseek.com
WordPress开发者和主题制作者的搜索引擎



block_editor_meta_box_hidden_fields › WordPress动作钩子

Since5.0.0
已弃用n/a
do_action( 'block_editor_meta_box_hidden_fields', $post )
参数:
  • (WP_Post) $post The post that is being edited.
    Required: Yes
定义在:
文档:

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.





源码

do_action( 'block_editor_meta_box_hidden_fields', $post );