gmb_place_types

The Maps Builder gmb place types hook.

Description

apply_filters( 'gmb_place_types', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'accounting' => __( 'Accounting', 'google-maps-builder' ), 'airport' => __( 'Airport', 'google-maps-builder' ), 'amusement_park' => __( 'Amusement Park', 'google-maps-builder' ), 'aquarium' => __( 'Aquarium', 'google-maps-builder' ), 'art_gallery' => __( 'Art Gallery', 'google-maps-builder' ), 'atm' => __( 'ATM', 'google-maps-builder' ), 'bakery' => __( 'Bakery', 'google-maps-builder' ), 'bank' => __( 'Bank', 'google-maps-builder' ), 'bar' => __( 'Bar', 'google-maps-builder' ), 'beauty_salon' => __( 'Beauty Salon', 'google-maps-builder' ), 'bicycle_store' => __( 'Bicycle Store', 'google-maps-builder' ), 'book_store' => __( 'Book Store', 'google-maps-builder' ), 'bowling_alley' => __( 'Bowling Alley', 'google-maps-builder' ), 'bus_station' => __( 'Bus Station', 'google-maps-builder' ), 'cafe' => __( 'Cafe', 'google-maps-builder' ), 'campground' => __( 'Campground', 'google-maps-builder' ), 'car_dealer' => __( 'Car Dealer', 'google-maps-builder' ), 'car_rental' => __( 'Car Rental', 'google-maps-builder' ), 'car_repair' => __( 'Car Repair', 'google-maps-builder' ), 'car_wash' => __( 'Car Wash', 'google-maps-builder' ), 'casino' => __( 'Casino', 'google-maps-builder' ), 'cemetery' => __( 'Cemetery', 'google-maps-builder' ), 'church' => __( 'Church', 'google-maps-builder' ), 'city_hall' => __( 'City Hall', 'google-maps-builder' ), 'clothing_store' => __( 'Clothing Store', 'google-maps-builder' ), 'convenience_store' => __( 'Convenience Store', 'google-maps-builder' ), 'courthouse' => __( 'Courthouse', 'google-maps-builder' ), 'dentist' => __( 'Dentist', 'google-maps-builder' ), 'department_store' => __( 'Department Store', 'google-maps-builder' ), 'doctor' => __( 'Doctor', 'google-maps-builder' ), 'electrician' => __( 'Electrician', 'google-maps-builder' ), 'electronics_store' => __( 'Electronics Store', 'google-maps-builder' ), 'embassy' => __( 'Embassy', 'google-maps-builder' ), 'establishment' => __( 'Establishment', 'google-maps-builder' ), 'finance' => __( 'Finance', 'google-maps-builder' ), 'fire_station' => __( 'Fire Station', 'google-maps-builder' ), 'florist' => __( 'Florist', 'google-maps-builder' ), 'food' => __( 'Food', 'google-maps-builder' ), 'funeral_home' => __( 'Funeral Home', 'google-maps-builder' ), 'furniture_store' => __( 'Furniture_store', 'google-maps-builder' ), 'gas_station' => __( 'Gas Station', 'google-maps-builder' ), 'general_contractor' => __( 'General Contractor', 'google-maps-builder' ), 'grocery_or_supermarket' => __( 'Grocery or Supermarket', 'google-maps-builder' ), 'gym' => __( 'Gym', 'google-maps-builder' ), 'hair_care' => __( 'Hair Care', 'google-maps-builder' ), 'hardware_store' => __( 'Hardware Store', 'google-maps-builder' ), 'health' => __( 'Health', 'google-maps-builder' ), 'hindu_temple' => __( 'Hindu Temple', 'google-maps-builder' ), 'home_goods_store' => __( 'Home Goods Store', 'google-maps-builder' ), 'hospital' => __( 'Hospital', 'google-maps-builder' ), 'insurance_agency' => __( 'Insurance Agency', 'google-maps-builder' ), 'jewelry_store' => __( 'Jewelry Store', 'google-maps-builder' ), 'laundry' => __( 'Laundry', 'google-maps-builder' ), 'lawyer' => __( 'Lawyer', 'google-maps-builder' ), 'library' => __( 'Library', 'google-maps-builder' ), 'liquor_store' => __( 'Liquor Store', 'google-maps-builder' ), 'local_government_office' => __( 'Local Government Office', 'google-maps-builder' ), 'locksmith' => __( 'Locksmith', 'google-maps-builder' ), 'lodging' => __( 'Lodging', 'google-maps-builder' ), 'meal_delivery' => __( 'Meal Delivery', 'google-maps-builder' ), 'meal_takeaway' => __( 'Meal Takeaway', 'google-maps-builder' ), 'mosque' => __( 'Mosque', 'google-maps-builder' ), 'movie_rental' => __( 'Movie Rental', 'google-maps-builder' ), 'movie_theater' => __( 'Movie Theater', 'google-maps-builder' ), 'moving_company' => __( 'Moving Company', 'google-maps-builder' ), 'museum' => __( 'Museum', 'google-maps-builder' ), 'night_club' => __( 'Night Club', 'google-maps-builder' ), 'painter' => __( 'Painter', 'google-maps-builder' ), 'park' => __( 'Park', 'google-maps-builder' ), 'parking' => __( 'Parking', 'google-maps-builder' ), 'pet_store' => __( 'Pet Store', 'google-maps-builder' ), 'pharmacy' => __( 'Pharmacy', 'google-maps-builder' ), 'physiotherapist' => __( 'Physiotherapist', 'google-maps-builder' ), 'place_of_worship' => __( 'Place of Worship', 'google-maps-builder' ), 'plumber' => __( 'Plumber', 'google-maps-builder' ), 'police' => __( 'Police', 'google-maps-builder' ), 'post_office' => __( 'Post Office', 'google-maps-builder' ), 'real_estate_agency' => __( 'Real Estate Agency', 'google-maps-builder' ), 'restaurant' => __( 'Restaurant', 'google-maps-builder' ), 'roofing_contractor' => __( 'Roofing Contractor', 'google-maps-builder' ), 'rv_park' => __( 'RV Park', 'google-maps-builder' ), 'school' => __( 'School', 'google-maps-builder' ), 'shoe_store' => __( 'Shoe Store', 'google-maps-builder' ), 'shopping_mall' => __( 'Shopping Mall', 'google-maps-builder' ), 'spa' => __( 'Spa', 'google-maps-builder' ), 'stadium' => __( 'Stadium', 'google-maps-builder' ), 'storage' => __( 'Storage', 'google-maps-builder' ), 'store' => __( 'Store', 'google-maps-builder' ), 'subway_station' => __( 'Subway Station', 'google-maps-builder' ), 'synagogue' => __( 'Synagogue', 'google-maps-builder' ), 'taxi_stand' => __( 'Taxi Stand', 'google-maps-builder' ), 'train_station' => __( 'Train Station', 'google-maps-builder' ), 'travel_agency' => __( 'Travel Agency', 'google-maps-builder' ), 'university' => __( 'University', 'google-maps-builder' ), 'veterinary_care' => __( 'Veterinary Care', 'google-maps-builder' ), 'zoo' => __( 'Zoo', 'google-maps-builder' ) )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'gmb_place_types', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gmb_place_types callback 
  2. function filter_gmb_place_types( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gmb_place_types', 'filter_gmb_place_types', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gmb_place_types', 'filter_gmb_place_types', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/vendor/wordimpress/maps-builder-core/includes/admin/class-gmc-admin.php  
  1. 'options' => apply_filters( 'gmb_place_types', array(