Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Set Advanced Custom Fields metabox priority
* Set Advanced Custom Fields metabox priority.
* @param string $priority The metabox priority.
* @param array $field_group The field group data.
* @return string $priority The metabox priority, modified.
function km_set_acf_metabox_priority( $priority, $field_group ) {
if ( 'My Field Group' === $field_group['title'] ) {
$priority = 'high';
return $priority;
add_filter( 'acf/input/meta_box_priority', 'km_set_acf_metabox_priority', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.