It could be possible to set this on a per page basis. I do not have any code, just a vague outline.
The main issue that I have found it that the meta box order is saved with AJAX as the user moves the boxes around. If I had to do this I would.
This is just for pages, it would need to be duplicated for other edit page box orders.
$user = get_current_user_id(); $order = get_user_option("meta-box-order_page", $user)
update_user_meta($user, "meta-box-order_page-$post_id", $order);
add_filter('get_user_option_meta-box-order_page', 'meta_box_order_by_page', 10, 3);
The main issue that I see with this is getting the current post ID because I don’t know if that information will be available or how it would be available. Potentially
global $post might be set.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2023 Advanced Custom Fields.