I am reordering the default meta box layout in the following way:
add_action('do_meta_boxes', 'move_meta_box');
function move_meta_box(){
remove_meta_box( 'my-itemsdiv', 'post', 'side' );
remove_meta_box( 'submitdiv', 'post', 'side' );
add_meta_box('my-itemsdiv', __('Something something'), 'X', 'my-item', 'normal', 'high');
add_meta_box('submitdiv', __( 'Submit item' ), 'post_submit_meta_box', 'my-item', 'normal', 'high' );
}
Problem: my-itemsdiv is a custom meta box for the theme and I don't know what callback function to call ("X").
Question: Is there any way I can find out what callback function is used for this meta box? What should I search for? (This theme has quite a bit of code..)
add_meta_box
. – Max Yudin Feb 19 '18 at 9:35