acf/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 $operators * @param $rule * * @return */ function wp_kama_acf_location_rule_operators_filter( $operators, $rule ){ // filter... return $operators; }
- $operators
- -
- $rule
- -
Где вызывается хук
acf/location/rule_operators
acf/includes/locations.php 199
$operators = apply_filters( 'acf/location/rule_operators', $operators, $rule );