acf/location/rule_values/type=(param)
Filters the location rule values.
Usage
add_filter( 'acf/location/rule_values/type=(param)', 'wp_kama_acf_location_rule_values_type_param_filter', 10, 2 );
/**
* Function for `acf/location/rule_values/type=(param)` filter-hook.
*
* @param array $types The location rule values.
* @param $rule
*
* @return array
*/
function wp_kama_acf_location_rule_values_type_param_filter( $types, $rule ){
// filter...
return $types;
}
- $types(array)
- The location rule values.
- $rule
- -
Changelog
| Since 5.6.0 | Introduced. |
Where the hook is called
acf/includes/locations.php 240
$values = apply_filters( "acf/location/rule_values/type={$rule['param']}", $values, $rule );