pmpro_euro_position_from_locale

The Paid Memberships Pro pmpro euro position from locale function.

Description

pmpro_euro_position_from_locale( (string) $position = 'right' ); 

Parameters (1)

0. $position — Optional. (string) => 'right'
The position.

Usage

  1. if ( !function_exists( 'pmpro_euro_position_from_locale' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/currencies.php'; 
  3.  
  4. // The position. 
  5. $position = 'right'; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pmpro_euro_position_from_locale($position); 
  9.  

Defined (1)

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

/includes/currencies.php  
  1. function pmpro_euro_position_from_locale($position = 'right') 
  2. $locale = get_locale(); 
  3. if(strpos($locale, 'en_') === 0) 
  4. $position = 'left'; 
  5. return $position;