acf/location/match_rule
Usage
add_filter( 'acf/location/match_rule', 'wp_kama_acf_location_match_rule_filter', 10, 4 );
/**
* Function for `acf/location/match_rule` filter-hook.
*
* @param $result
* @param $rule
* @param $screen
* @param $field_group
*
* @return
*/
function wp_kama_acf_location_match_rule_filter( $result, $rule, $screen, $field_group ){
// filter...
return $result;
}
- $result
- -
- $rule
- -
- $screen
- -
- $field_group
- -
Where the hook is called
acf/location/match_rule
acf/includes/locations.php 278
$result = apply_filters( 'acf/location/match_rule', $result, $rule, $screen, $field_group );