acf/location/match_rule
Filters the result.
Використання
add_filter( 'acf/location/match_rule', 'wp_kama_acf_location_match_rule_filter', 10, 4); /** * Function for `acf/location/match_rule` filter-hook. * * @param bool $result The match result. * @param array $rule 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_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
acf/includes/locations.php 267
$result = apply_filters( 'acf/location/match_rule', $result, $rule, $screen, $field_group );
Де використовується хук в Advanced Custom Fields
Використання не знайдено.