acf/location/match_rule хук-фильтр . ACF 5.6.0
Filters the result.
Использование
add_filter( 'acf/location/match_rule', 'filter_function_name_5586', 10, 4 ); function filter_function_name_5586( $result, $rule, $screen, $field_group ){ // filter... return $result; }
- $result(true/false)
- The match result.
- $rule(массив)
- The location rule.
- $screen(массив)
- The screen args.
- $field_group(массив)
- The field group array.
Список изменений
С версии 5.6.0 | Введена. |
Где вызывается хук
acf/location/match_rule
acf/includes/locations.php 262
$result = apply_filters( "acf/location/match_rule", $result, $rule, $screen, $field_group );