Support

Account

Forum Replies Created

  • In case it can be helpful for someone else, here’s the code to list all tabs labels from a specific fields group:

    $tabs = [];
    $feilds = acf_get_fields(INSERT_FIELDS_GROUP_ID);
    foreach ($feilds as $field) {
    	$type = $field['type'];
    	if ($type == 'tab') {
    		$tabs[] = $field['label'];
    	}
    }
Viewing 1 post (of 1 total)