Created
          June 18, 2021 14:45 
        
      - 
      
- 
        Save annelyse/cfca315be56451bd60a8bbb9496a8e27 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | <?php /** | |
| * 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 ( 'group_60c878bd5b81f' === $field_group['key'] ) { | |
| $priority = 'hight'; | |
| } | |
| 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