WordPress filter hook
acf/location/rule_types
Fired by 42 WordPress plugins, running on 2.1M+ sites between them.
“Filters the location rule types.”
How to use acf/location/rule_types
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'acf/location/rule_types', function( $types ) {
// Change $types here.
return $types;
}, 10, 1 );Argument names come from Advanced Custom Fields (ACF®)'s source. Other plugins may pass different values: check the call in the plugin you're targeting below.
42 plugins that fire acf/location/rule_types
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Advanced Custom Fields (ACF®)2+ million installs
apply_filters( 'acf/location/rule_types', $types )includes/locations.php:143 -
Secure Custom Fields100,000+ installs
apply_filters( 'acf/location/rule_types', $types )includes/locations.php:132 -
Mapster WP Maps3,000+ installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/includes/locations.php:143 -
WPScreens300+ installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/includes/locations.php:130 -
MapifyLite (by MapifyPro)200+ installs
apply_filters( 'acf/location/rule_types', $types )lib/advanced-custom-fields/includes/locations.php:134 -
WP Related Posts and Products (WRI)100+ installs
apply_filters( 'acf/location/rule_types', $groups )advanced-custom-fields/includes/locations.php:119 -
Flexblocks80+ installs
apply_filters( 'acf/location/rule_types', $types )inc/acf/includes/locations.php:132 -
Dooodl50+ installs
apply_filters( 'acf/location/rule_types', $choices )includes/libs/advanced-custom-fields/core/views/meta_box_location.php:100 -
OneDS Start Package40+ installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/includes/locations.php:134 -
Social Influencer Links30+ installs
apply_filters( 'acf/location/rule_types', $types )lib/acf/includes/locations.php:130 -
Tuxedo Importer20+ installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/includes/locations.php:132 -
Accessibility Statement20+ installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/includes/locations.php:132 -
Fancy Grid Portfolio20+ installs
apply_filters( 'acf/location/rule_types', $choices )lib/advanced-custom-fields/core/views/meta_box_location.php:99 -
Simple Content Adder20+ installs
apply_filters( 'acf/location/rule_types', $choices )lib/advanced-custom-fields/core/views/meta_box_location.php:100 -
TSA Commerce20+ installs
apply_filters( 'acf/location/rule_types', $choices )vendors/acf/core/views/meta_box_location.php:100 -
FloristPress for Woo10+ installs
apply_filters( 'acf/location/rule_types', $types )lib/acf/includes/locations.php:134 -
Rexpansive Builder10+ installs
apply_filters( 'acf/location/rule_types', $types )admin/lib/acf/advanced-custom-fields/includes/locations.php:132 -
Megabits Control Gastos10+ installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/includes/locations.php:132 -
WoWpi Guild10+ installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/includes/locations.php:130 -
Proshots For WooCommerce10+ installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/includes/locations.php:130 -
Important Dates Dashboard Widget10+ installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/includes/locations.php:132 -
Mufasa 🦁 Slider10+ installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/includes/locations.php:130 -
Schedule Tweets10+ installs
apply_filters( 'acf/location/rule_types', $groups )assets/plugins/acf/includes/locations.php:119 -
LogicalDOC WordPress Explorer10+ installs
apply_filters( 'acf/location/rule_types', $choices )advanced-custom-fields/core/views/meta_box_location.php:100 -
Coronavirus (COVID-19) Live Update Popup10+ installs
apply_filters( 'acf/location/rule_types', $groups )includes/acf/includes/locations.php:119 -
Simply Documents10+ installs
apply_filters( 'acf/location/rule_types', $choices )lib/advanced-custom-fields/core/views/meta_box_location.php:100 -
Realty Pack Core10+ installs
apply_filters( 'acf/location/rule_types', $groups )app/acf/includes/locations.php:119 -
Church Options10+ installs
apply_filters( 'acf/location/rule_types', $choices )lib/advanced-custom-fields/core/views/meta_box_location.php:100 -
Simple KMDG Resource CenterFewer than 10 installs
apply_filters( 'acf/location/rule_types', $types )includes/advanced-custom-fields/includes/locations.php:130 -
Admin Notes WPFewer than 10 installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/advanced-custom-fields/includes/locations.php:130 -
Work Time AllocatorFewer than 10 installs
apply_filters( 'acf/location/rule_types', $types )lib/advanced-custom-fields/includes/locations.php:130 -
Dashboard Feeds Dashboard WidgetFewer than 10 installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/includes/locations.php:132 -
Repeat EventsFewer than 10 installs
apply_filters( 'acf/location/rule_types', $types )includes/acf/includes/locations.php:130 -
Contact Form 7 AnalyticsFewer than 10 installs
apply_filters( 'acf/location/rule_types', array( __("Post",'acf') => array( 'post_type' => __("Post Type",'acf'), 'post_template' => __("Post Template",'acf'), 'post_status' => __("Post Status",'acf'), 'post_format' => __("Post Format",'acf'), 'post_category' => __("Post Category",'acf'), 'post_taxonomy' => __("Post Taxonomy",'acf'), 'post' => __("Post",'acf') ), __("Page",'acf') => array( 'page_template' => __("Page Template",'acf'), ... )acf/admin/views/field-group-locations.php:4 -
Ninety in NinetyFewer than 10 installs
apply_filters( 'acf/location/rule_types', $groups )inc/acf/includes/locations.php:119 -
Admin User ControlFewer than 10 installs
apply_filters( 'acf/location/rule_types', $groups )includes/acf/includes/locations.php:119 -
House AdsFewer than 10 installs
apply_filters( 'acf/location/rule_types', $groups )lib/acf/includes/locations.php:119 -
NavThemes Gutenberg BlocksFewer than 10 installs
apply_filters( 'acf/location/rule_types', $groups )admin/includes/locations.php:119 -
NavThemes Employee RatingsFewer than 10 installs
apply_filters( 'acf/location/rule_types', $groups )admin/includes/locations.php:119 -
Quick RecommendFewer than 10 installs
apply_filters( 'acf/location/rule_types', $choices )lib/advanced-custom-fields/core/views/meta_box_location.php:100 -
ASD Feature MapsFewer than 10 installs
apply_filters( 'acf/location/rule_types', $choices )includes/advanced-custom-fields/core/views/meta_box_location.php:100 -
Flaunt Your ClientsFewer than 10 installs
apply_filters( 'acf/location/rule_types', $choices )includes/advanced-custom-fields/core/views/meta_box_location.php:100
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.