ddw_gftb_detect_locales

Helper function for detecting an array of specific locales.

Description

ddw_gftb_detect_locales( (array) $locales ); 

Parameters (1)

0. $locales (array)
Array of various locale IDs.

Usage

  1. if ( !function_exists( 'ddw_gftb_detect_locales' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-toolbar/lib/gftb-functions.php'; 
  3.  
  4. // Array of various locale IDs. 
  5. $locales = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ddw_gftb_detect_locales($locales); 
  9.  

Defined (1)

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

/lib/gftb-functions.php  
  1. function ddw_gftb_detect_locales( $locales ) { 
  2.  
  3. return ( in_array( get_locale(), (array) $locales ) ) ? TRUE : FALSE; 
  4.  
  5. } // end of function ddw_gftb_detect_locales