acf_admin_options_page::get_options_page_field_groupsprotectedACF 6.8.7

Returns the field groups assigned to the current options page.

Used to derive the set of $_POST['acf'] keys the current save is allowed to accept — see get_options_page_allowed_field_keys().

Метод класса: acf_admin_options_page{}

Хуков нет.

Возвращает

array.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_options_page_field_groups();

Список изменений

С версии 6.8.7 Введена.

Код acf_admin_options_page::get_options_page_field_groups() ACF 6.8.8

protected function get_options_page_field_groups() {
	return acf_get_field_groups(
		array(
			'options_page' => $this->page['menu_slug'],
		)
	);
}