Skip to content

Instantly share code, notes, and snippets.

@dingo-d
Last active November 2, 2017 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dingo-d/7083711ddeb0bcd99204d550fec755a3 to your computer and use it in GitHub Desktop.
Save dingo-d/7083711ddeb0bcd99204d550fec755a3 to your computer and use it in GitHub Desktop.
ACF before editor fix
<?php
add_action( 'admin_init', 'prefix_reset_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' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment