acf/location/rule_values/type=(param) filter-hookACF 5.6.0

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_get_location_rule_values()
acf/location/rule_values/type=(param)
acf/includes/locations.php 240
$values = apply_filters( "acf/location/rule_values/type={$rule['param']}", $values, $rule );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.