ACF_Location_Options_Page::match()publicACF 5.9.0

Matches the provided rule against the screen args returning a bool result.

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

Хуков нет.

Возвращает

true|false.

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

$ACF_Location_Options_Page = new ACF_Location_Options_Page();
$ACF_Location_Options_Page->match( $rule, $screen, $field_group );
$rule(массив) (обязательный)
The location rule.
$screen(массив) (обязательный)
The screen args.
$field_group(массив) (обязательный)
The field group settings.

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

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

Код ACF_Location_Options_Page::match() ACF 6.0.4

public function match( $rule, $screen, $field_group ) {

	// Check screen args.
	if ( isset( $screen['options_page'] ) ) {
		$options_page = $screen['options_page'];
	} else {
		return false;
	}

	// Compare rule against $nav_menu.
	return $this->compare_to_rule( $options_page, $rule );
}