gmb_map_languages

Map Languages.

Description

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

Returns (array)

Parameters (1)

0. $array — Optional. (callback) => array( '' => __( 'User Default', 'google-maps-builder' ), 'af' => __( 'Afrikaans', 'google-maps-builder' ), 'sq' => __( 'Albanian', 'google-maps-builder' ), 'eu' => __( 'Basque', 'google-maps-builder' ), 'be' => __( 'Belarusian', 'google-maps-builder' ), 'bg' => __( 'Bulgarian', 'google-maps-builder' ), 'ca' => __( 'Catalan', 'google-maps-builder' ), 'zh-cn' => __( 'Chinese (Simplified)', 'google-maps-builder' ), 'zh-tw' => __( 'Chinese (Traditional)', 'google-maps-builder' ), 'hr' => __( 'Croatian', 'google-maps-builder' ), 'cs' => __( 'Czech', 'google-maps-builder' ), 'da' => __( 'Danish', 'google-maps-builder' ), 'nl' => __( 'Dutch', 'google-maps-builder' ), 'nl-be' => __( 'Dutch (Belgium)', 'google-maps-builder' ), 'nl-nl' => __( 'Dutch (Netherlands)', 'google-maps-builder' ), 'en' => __( 'English', 'google-maps-builder' ), 'en-au' => __( 'English (Australia)', 'google-maps-builder' ), 'en-bz' => __( 'English (Belize)', 'google-maps-builder' ), 'en-ca' => __( 'English (Canada)', 'google-maps-builder' ), 'en-ie' => __( 'English (Ireland)', 'google-maps-builder' ), 'en-jm' => __( 'English (Jamaica)', 'google-maps-builder' ), 'en-nz' => __( 'English (New Zealand)', 'google-maps-builder' ), 'en-ph' => __( 'English (Phillipines)', 'google-maps-builder' ), 'en-za' => __( 'English (South Africa)', 'google-maps-builder' ), 'en-tt' => __( 'English (Trinidad)', 'google-maps-builder' ), 'en-gb' => __( 'English (United Kingdom)', 'google-maps-builder' ), 'en-us' => __( 'English (United States)', 'google-maps-builder' ), 'en-zw' => __( 'English (Zimbabwe)', 'google-maps-builder' ), 'et' => __( 'Estonian', 'google-maps-builder' ), 'fo' => __( 'Faeroese', 'google-maps-builder' ), 'fi' => __( 'Finnish', 'google-maps-builder' ), 'fr' => __( 'French', 'google-maps-builder' ), 'fr-be' => __( 'French (Belgium)', 'google-maps-builder' ), 'fr-ca' => __( 'French (Canada)', 'google-maps-builder' ), 'fr-fr' => __( 'French (France)', 'google-maps-builder' ), 'fr-lu' => __( 'French (Luxembourg)', 'google-maps-builder' ), 'fr-mc' => __( 'French (Monaco)', 'google-maps-builder' ), 'fr-ch' => __( 'French (Switzerland)', 'google-maps-builder' ), 'gl' => __( 'Galician', 'google-maps-builder' ), 'gd' => __( 'Gaelic', 'google-maps-builder' ), 'de' => __( 'German', 'google-maps-builder' ), 'de-at' => __( 'German (Austria)', 'google-maps-builder' ), 'de-de' => __( 'German (Germany)', 'google-maps-builder' ), 'de-li' => __( 'German (Liechtenstein)', 'google-maps-builder' ), 'de-lu' => __( 'German (Luxembourg)', 'google-maps-builder' ), 'de-ch' => __( 'German (Switzerland)', 'google-maps-builder' ), 'el' => __( 'Greek', 'google-maps-builder' ), 'haw' => __( 'Hawaiian', 'google-maps-builder' ), 'hu' => __( 'Hungarian', 'google-maps-builder' ), 'is' => __( 'Icelandic', 'google-maps-builder' ), 'in' => __( 'Indonesian', 'google-maps-builder' ), 'ga' => __( 'Irish', 'google-maps-builder' ), 'it' => __( 'Italian', 'google-maps-builder' ), 'it-it' => __( 'Italian (Italy)', 'google-maps-builder' ), 'it-ch' => __( 'Italian (Switzerland)', 'google-maps-builder' ), 'ja' => __( 'Japanese', 'google-maps-builder' ), 'ko' => __( 'Korean', 'google-maps-builder' ), 'mk' => __( 'Macedonian', 'google-maps-builder' ), 'no' => __( 'Norwegian', 'google-maps-builder' ), 'pl' => __( 'Polish', 'google-maps-builder' ), 'pt' => __( 'Portuguese', 'google-maps-builder' ), 'pt-br' => __( 'Portuguese (Brazil)', 'google-maps-builder' ), 'pt-pt' => __( 'Portuguese (Portugal)', 'google-maps-builder' ), 'ro' => __( 'Romanian', 'google-maps-builder' ), 'ro-mo' => __( 'Romanian (Moldova)', 'google-maps-builder' ), 'ro-ro' => __( 'Romanian (Romania)', 'google-maps-builder' ), 'ru' => __( 'Russian', 'google-maps-builder' ), 'ru-mo' => __( 'Russian (Moldova)', 'google-maps-builder' ), 'ru-ru' => __( 'Russian (Russia)', 'google-maps-builder' ), 'sr' => __( 'Serbian', 'google-maps-builder' ), 'sk' => __( 'Slovak', 'google-maps-builder' ), 'sl' => __( 'Slovenian', 'google-maps-builder' ), 'es' => __( 'Spanish', 'google-maps-builder' ), 'es-ar' => __( 'Spanish (Argentina)', 'google-maps-builder' ), 'es-bo' => __( 'Spanish (Bolivia)', 'google-maps-builder' ), 'es-cl' => __( 'Spanish (Chile)', 'google-maps-builder' ), 'es-co' => __( 'Spanish (Colombia)', 'google-maps-builder' ), 'es-cr' => __( 'Spanish (Costa Rica)', 'google-maps-builder' ), 'es-do' => __( 'Spanish (Dominican Republic)', 'google-maps-builder' ), 'es-ec' => __( 'Spanish (Ecuador)', 'google-maps-builder' ), 'es-sv' => __( 'Spanish (El Salvador)', 'google-maps-builder' ), 'es-gt' => __( 'Spanish (Guatemala)', 'google-maps-builder' ), 'es-hn' => __( 'Spanish (Honduras)', 'google-maps-builder' ), 'es-mx' => __( 'Spanish (Mexico)', 'google-maps-builder' ), 'es-ni' => __( 'Spanish (Nicaragua)', 'google-maps-builder' ), 'es-pa' => __( 'Spanish (Panama)', 'google-maps-builder' ), 'es-py' => __( 'Spanish (Paraguay)', 'google-maps-builder' ), 'es-pe' => __( 'Spanish (Peru)', 'google-maps-builder' ), 'es-pr' => __( 'Spanish (Puerto Rico)', 'google-maps-builder' ), 'es-es' => __( 'Spanish (Spain)', 'google-maps-builder' ), 'es-uy' => __( 'Spanish (Uruguay)', 'google-maps-builder' ), 'es-ve' => __( 'Spanish (Venezuela)', 'google-maps-builder' ), 'sv' => __( 'Swedish', 'google-maps-builder' ), 'sv-fi' => __( 'Swedish (Finland)', 'google-maps-builder' ), 'sv-se' => __( 'Swedish (Sweden)', 'google-maps-builder' ), 'tr' => __( 'Turkish', 'google-maps-builder' ), 'uk' => __( 'Ukranian', 'google-maps-builder' ), )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'gmb_map_languages', $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_map_languages callback 
  2. function filter_gmb_map_languages( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gmb_map_languages', 'filter_gmb_map_languages', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gmb_map_languages', 'filter_gmb_map_languages', 10, 1 ); 

Defined (1)

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

/vendor/wordimpress/maps-builder-core/includes/misc-functions.php  
  1. $lanugages = apply_filters( 'gmb_map_languages', array(