Support

Account

Home Forums Backend Issues (wp-admin) Adding Rules to field group with php Reply To: Adding Rules to field group with php

  • use the hook acf/load_field_group hook and modify the location rules.

    
    $field_group = apply_filters( 'acf/load_field_group', $field_group );
    

    To see how the location part of the group works export you group to PHP and see what is already in there.