Add meta box to page or post

function mw_member_add_meta_box( $page, $context ) {
if ( ( 'page' === $page || 'post' === $page ) && 'advanced' === $context )
add_meta_box( 'mw-member-levels', 'Member Levels', 'mw_select_member_level', $page, 'advanced', 'low' );
}

0 Comments

You must be logged in to post a comment.