Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('acf/load_field_groups', function($field_groups){
- foreach( $field_groups as $key => $group ){
- if( isset($group['key']) && $group['key'] === 'group_5c4f2dec3824e' ){
- if( isset($group['location'][0][0]['param']) && $group['location'][0][0]['param'] === 'nav_menu_item' ){
- $field_groups[$key]['location'][0][0]['value'] = 'all';
- }
- }
- }
- return $field_groups;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement