acf/location/rule_operators
Filters the location rule operators.
Использование
add_filter( 'acf/location/rule_operators', 'wp_kama_acf_location_rule_operators_filter', 10, 2 ); /** * Function for `acf/location/rule_operators` filter-hook. * * @param array $types The location rule operators. * @param $rule * * @return array */ function wp_kama_acf_location_rule_operators_filter( $types, $rule ){ // filter... return $types; }
- $types(массив)
- The location rule operators.
- $rule
- -
Список изменений
С версии 5.6.0 | Введена. |
Где вызывается хук
acf/location/rule_operators
acf/includes/locations.php 199
$operators = apply_filters( 'acf/location/rule_operators', $operators, $rule );