acf/location/rule_types хук-фильтрACF 5.9.0

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_get_location_rule_types()
acf/location/rule_types
acf/includes/locations.php 132
return apply_filters( 'acf/location/rule_types', $types );

Где используется хук в Advanced Custom Fields PRO

Использование не найдено.