acf/location/rule_types filter-hookACF 5.9.0

Filters the location rule types.

Usage

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(array)
The location rule types.

Changelog

Since 5.9.0 Introduced.

Where the hook is called

acf_get_location_rule_types()
acf/location/rule_types
acf/includes/locations.php 143
return apply_filters( 'acf/location/rule_types', $types );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.