acf/location/rule_operators/(param)
Использование
add_filter( 'acf/location/rule_operators/(param)', 'wp_kama_acf_location_rule_operators_param_filter', 10, 2 ); /** * Function for `acf/location/rule_operators/(param)` filter-hook. * * @param $operators * @param $rule * * @return */ function wp_kama_acf_location_rule_operators_param_filter( $operators, $rule ){ // filter... return $operators; }
- $operators
- -
- $rule
- -
Где вызывается хук
acf/location/rule_operators/(param)
acf/includes/locations.php 198
$operators = apply_filters( "acf/location/rule_operators/{$rule['param']}", $operators, $rule );
Где используется хук в Advanced Custom Fields PRO
acf/includes/locations/abstract-acf-legacy-location.php 27
add_filter( "acf/location/rule_operators/{$this->name}", array( $this, 'rule_operators' ), 5, 2 );