plugin_locale

Filters a plugin's locale.

Description

apply_filters( 'plugin_locale', (unknown) $mi_locale, (string) $google_analytics_for_wordpress ); 

Parameters (2)

0. $mi_locale (unknown)
The mi locale.
1. $google_analytics_for_wordpress (string) => 'google-analytics-for-wordpress'
The google analytics for wordpress.

Usage

To run the hook, copy the example below.
  1. $mi_locale = apply_filters( 'plugin_locale', $mi_locale, $google_analytics_for_wordpress ); 
  2.  
  3. if ( !empty( $mi_locale ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the plugin_locale callback 
  2. function filter_plugin_locale( $mi_locale, $google_analytics_for_wordpress ) { 
  3. // make filter magic happen here... 
  4. return $mi_locale
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'plugin_locale', 'filter_plugin_locale', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'plugin_locale', 'filter_plugin_locale', 10, 2 ); 

Defined (1)

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

/googleanalytics.php  
  1. $mi_locale = apply_filters( 'plugin_locale', $mi_locale, 'google-analytics-for-wordpress' );