bbp_plugin_locale

Filter the plugin locale and domain.

Description

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

Parameters (2)

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

Usage

  1. if ( !function_exists( 'bbp_plugin_locale' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/sub-actions.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_plugin_locale($locale, $domain); 
  12.  

Defined (1)

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

/includes/core/sub-actions.php  
  1. function bbp_plugin_locale( $locale = '', $domain = '' ) { 
  2. return apply_filters( 'bbp_plugin_locale', $locale, $domain );