Created
September 7, 2017 15:48
-
-
Save tomfinitely/43394e4184e4515a08bc9ccb3d1355ec to your computer and use it in GitHub Desktop.
Reset ACF Metabox Positions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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