ACF_Location_Widget::match
Matches the provided rule against the screen args returning a bool result.
Метод класса: ACF_Location_Widget{}
Хуков нет.
Возвращает
true|false.
Использование
$ACF_Location_Widget = new ACF_Location_Widget(); $ACF_Location_Widget->match( $rule, $screen, $field_group );
- $rule(массив) (обязательный)
- The location rule.
- $screen(массив) (обязательный)
- The screen args.
- $field_group(массив) (обязательный)
- The field group settings.
Список изменений
| С версии 5.9.0 | Введена. |
Код ACF_Location_Widget::match() ACF Location Widget::match ACF 6.4.2
public function match( $rule, $screen, $field_group ) {
// Check screen args.
if ( isset( $screen['widget'] ) ) {
$widget = $screen['widget'];
} else {
return false;
}
// Compare rule against $widget.
return $this->compare_to_rule( $widget, $rule );
}