gde_get_locale
Get locale.
Description
(string) gde_get_locale();
Returns (string)
Google viewer lang code based on WP_LANG setting, or en_US if not defined
Usage
if ( !function_exists( 'gde_get_locale' ) ) { require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions-admin.php'; } // NOTICE! Understand what this does before running. $result = gde_get_locale();
Defined (1)
The function is defined in the following location(s).
- /functions-admin.php
- function gde_get_locale() {
- $locale = get_locale();
- require_once( GDE_PLUGIN_DIR . 'libs/lib-langs.php' );
- return gde_mapped_langs( $locale );
- }