acf/location/match_rule/type=(param)
Filters the result.
Использование
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(массив)
- The location rule.
- $screen(массив)
- The screen args.
- $field_group(массив)
- The field group array.
Список изменений
С версии 5.6.0 | Введена. |
Где вызывается хук
acf/location/match_rule/type=(param)
acf/includes/locations.php 266
$result = apply_filters( "acf/location/match_rule/type={$rule['param']}", $result, $rule, $screen, $field_group );