// MOVE REVISIONS METABOX TO BOTTOM OF EDIT-FORM.PHP
$post_types = get_post_types();
add_action('do_meta_boxes', 'batteryboys_reorder_meta_boxes');
function batteryboys_reorder_meta_boxes(){
remove_meta_box( 'revisionsdiv', $post_types, 'normal' );
add_meta_box('revisionsdiv', __('Revisions'), 'post_revisions_meta_box', $post_types, 'normal', 'low');
}
This code works fine, however when you move the $post_types = get_post_types();
inside of the function, it does not work.
Is this because the get_post_types() function has to be global to execute and by containing it inside the function I am restricting it to just inside the function? In other words, it can't get out to query the database, right?