acf/location/match_rule/type=(param)
Filters the result.
Usage
add_filter( 'acf/location/match_rule/type=(param)', 'wp_kama_acf_location_match_rule_type_param_filter', 10, 4 );
/**
* Function for `acf/location/match_rule/type=(param)` filter-hook.
*
* @param bool $result The match result.
* @param array $rule The location rule.
* @param array $screen The screen args.
* @param array $field_group The field group array.
*
* @return bool
*/
function wp_kama_acf_location_match_rule_type_param_filter( $result, $rule, $screen, $field_group ){
// filter...
return $result;
}
- $result(true|false)
- The match result.
- $rule(array)
- The location rule.
- $screen(array)
- The screen args.
- $field_group(array)
- The field group array.
Changelog
| Since 5.6.0 | Introduced. |
Where the hook is called
acf/location/match_rule/type=(param)
acf/includes/locations.php 277
$result = apply_filters( "acf/location/match_rule/type={$rule['param']}", $result, $rule, $screen, $field_group );