acf/location/rule_types
Filters the location rule types.
Использование
add_filter( 'acf/location/rule_types', 'wp_kama_acf_location_rule_types_filter' );
/**
* Function for `acf/location/rule_types` filter-hook.
*
* @param array $types The location rule types.
*
* @return array
*/
function wp_kama_acf_location_rule_types_filter( $types ){
// filter...
return $types;
}
- $types(массив)
- The location rule types.
Список изменений
| С версии 5.9.0 | Введена. |
Где вызывается хук
acf/location/rule_types
acf/includes/locations.php 134
return apply_filters( 'acf/location/rule_types', $types );