id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 31559 Meta boxes should have before/after hooks jtsternberg "Currently there is no way to hook into an existing metabox. If I wanted to modify the featured image metabox (add a checkbox or something), I'd have to unregister the metabox, and re-register w/ my own callback. This is not good for compatibility w/ other plugins, etc. I propose before_callback and after_callback hooks for metaboxes. Basically, we'd replace this: {{{ echo '
' . ""\n""; call_user_func($box['callback'], $object, $box); echo ""
\n""; }}} with: {{{ echo '
' . ""\n""; do_action( 'before_metabox_callback', $object, $box ); do_action( ""before_{$box['id']}_metabox_callback"", $object, $box ); call_user_func($box['callback'], $object, $box); do_action( 'after_metabox_callback', $object, $box ); do_action( ""after_{$box['id']}_metabox_callback"", $object, $box ); echo ""
\n""; }}} " enhancement new normal General normal has-patch 2nd-opinion administration