_bbp_filter_locale

Deprecated locale filter.

Description

(string) _bbp_filter_locale( (string) $locale = '', (string) $domain = '' ); 

Returns (string)

$domain

Parameters (2)

0. $locale — Optional. (string) => ''
The locale.
1. $domain — Optional. (string) => ''
The domain.

Usage

  1. if ( !function_exists( '_bbp_filter_locale' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/filters.php'; 
  3.  
  4. // The locale. 
  5. $locale = ''; 
  6.  
  7. // The domain. 
  8. $domain = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = _bbp_filter_locale($locale, $domain); 
  12.  

Defined (1)

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

/includes/core/filters.php  
  1. function _bbp_filter_locale( $locale = '', $domain = '' ) { 
  2.  
  3. // Only apply to the bbPress text-domain 
  4. if (bbpress)->domain !== $domain ) { 
  5. return $locale; 
  6.  
  7. return apply_filters( 'bbpress_locale', $locale, $domain );