Skip to content

Instantly share code, notes, and snippets.

@tomfinitely
Created September 7, 2017 15:48
Show Gist options
  • Save tomfinitely/43394e4184e4515a08bc9ccb3d1355ec to your computer and use it in GitHub Desktop.
Save tomfinitely/43394e4184e4515a08bc9ccb3d1355ec to your computer and use it in GitHub Desktop.
Reset ACF Metabox Positions
function prefix_reset_metabox_positions(){
delete_user_meta( 1, 'meta-box-order_post' );
delete_user_meta( 1, 'meta-box-order_page' );
delete_user_meta( 1, 'meta-box-order_custom_post_type' );
}
add_action( 'admin_init', 'prefix_reset_metabox_positions' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment