Skip to content

Instantly share code, notes, and snippets.

@electricbrick
Created September 7, 2017 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save electricbrick/43394e4184e4515a08bc9ccb3d1355ec to your computer and use it in GitHub Desktop.
Save electricbrick/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