[wp-trac] [WordPress Trac] #45283: Meta Boxes: Add an action for plugins to print hidden inputs in the meta box form
WordPress Trac
noreply at wordpress.org
Mon Nov 5 04:31:23 UTC 2018
#45283: Meta Boxes: Add an action for plugins to print hidden inputs in the meta
box form
--------------------------+-----------------------
Reporter: pento | Owner: pento
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.0
Component: Editor | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+-----------------------
Changes (by pento):
* keywords: => has-patch
Comment:
[attachment:"45283.diff"] adds the `block_editor_meta_box_hidden_fields`
action.
In the case of ACF, to continue the example, this action would be used by
adding the following line to `ACF_Form_Post::initialize()`:
`add_action( 'block_editor_meta_box_hidden_fields', array( $this,
'edit_form_after_title' ) );`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45283#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list