Support

Account

Home Forums General Issues get list of field groups for location rule Reply To: get list of field groups for location rule

  • More easy & efficient way,
    //Fields groups assigned to post type “Foo”
    $groups = acf_get_field_groups( array( 'post_type' => 'Foo' ) );
    //Fields groups assigned to user role “Test”
    $groups = acf_get_field_groups( array('user_role' => "Test") );