Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add meta box callback function
* Add meta box
* @param post $post The post object
* @link
function food_add_meta_boxes( $post ){
add_meta_box( 'food_meta_box', __( 'Nutrition facts', 'food_example_plugin' ), 'food_build_meta_box', 'food', 'side', 'low' );
add_action( 'add_meta_boxes_food', 'food_add_meta_boxes' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.