Make WordPress Core


Ignore:
Timestamp:
11/09/2018 09:05:47 AM (7 years ago)
Author:
pento
Message:

Meta Boxes: Add the block_editor_meta_box_hidden_fields action.

Lacking an appropriate action in the classic editor, plugins that add meta boxes have historically hooked into various actions in order to add hidden input fields.

This change also adds backwards compatibility for two of the most common: edit_form_after_title, and edit_form_advanced.

Props pento, danielbachhuber.
See #45283.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/edit-form-blocks.php

    r43878 r43882  
    387387register_and_do_post_meta_boxes( $post );
    388388
    389 // Some meta boxes hook into the 'edit_form_advanced' filter.
    390 /** This action is documented in wp-admin/edit-form-advanced.php */
    391 do_action( 'edit_form_advanced', $post );
    392 
    393389require_once( ABSPATH . 'wp-admin/admin-header.php' );
    394390?>
Note: See TracChangeset for help on using the changeset viewer.