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