acf/location/rule_match
Использование
add_filter( 'acf/location/rule_match', 'wp_kama_acf_location_rule_match_filter', 10, 4 ); /** * Function for `acf/location/rule_match` filter-hook. * * @param $result * @param $rule * @param $screen * @param $field_group * * @return */ function wp_kama_acf_location_rule_match_filter( $result, $rule, $screen, $field_group ){ // filter... return $result; }
- $result
- -
- $rule
- -
- $screen
- -
- $field_group
- -
Где вызывается хук
acf/location/rule_match
acf/includes/locations.php 269
$result = apply_filters( 'acf/location/rule_match', $result, $rule, $screen, $field_group );