acf/location/rule_values/(param) хук-фильтр . ACF 5.6.0
Filters the location rule values.
Использование
add_filter( 'acf/location/rule_values/(param)', 'filter_function_name_9957', 10, 2 ); function filter_function_name_9957( $types, $rule ){ // filter... return $types; }
- $types(массив)
- The location rule values.
- $rule
- -
Список изменений
С версии 5.6.0 | Введена. |
Где вызывается хук
acf/includes/locations.php 225
$values = apply_filters( "acf/location/rule_values/{$rule['param']}", $values, $rule );
Где используется хук в ядре Advanced Custom Fields
acf/includes/locations/abstract-acf-legacy-location.php 28
add_filter( "acf/location/rule_values/{$this->name}", array( $this, 'rule_values' ), 5, 2 );