[wp-trac] [WordPress Trac] #31559: Meta boxes should have before/after hooks

WordPress Trac noreply at wordpress.org
Fri Jul 31 22:16:36 UTC 2015


#31559: Meta boxes should have before/after hooks
-----------------------------------+------------------------------
 Reporter:  jtsternberg            |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  General                |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  administration
-----------------------------------+------------------------------

Comment (by Cybr):

 I'd like to see more extensibility on these features too. Adding extra
 meta boxes on the same subject seems unorganized and adds unneeded
 clutter.

 A simple filter or a do_action() would be nice.

 e.g.:


 {{{
 // Line 763 meta-boxes.php:
 <p><strong><?php _e('Order') ?></strong></p>
 <p><label class="screen-reader-text" for="menu_order"><?php _e('Order')
 ?></label><input name="menu_order" type="text" size="4" id="menu_order"
 value="<?php echo esc_attr($post->menu_order) ?>" /></p>

 <?php do_action( 'after_page_attributes_meta_box' ); ?>

 <?php if ( 'page' == $post->post_type &&
 get_current_screen()->get_help_tabs() ) { ?>
 <p><?php _e( 'Need help? Use the Help tab in the upper right of your
 screen.' ); ?></p>
 <?php
         }
 }}}

 A nice scenario would be to add the wpautop filter option to that section
 through a plugin.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31559#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list