globalpay_add_ngn_currency_symbol

The Woocommerce GlobalPay globalpay add ngn currency symbol function.

Description

globalpay_add_ngn_currency_symbol( $currency_symbol, $currency ); 

Parameters (2)

0. $currency_symbol
The currency symbol.
1. $currency
The currency.

Usage

  1. if ( !function_exists( 'globalpay_add_ngn_currency_symbol' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-globalpay/woocommerce-globalpay.php'; 
  3.  
  4. // The currency symbol. 
  5. $currency_symbol = null; 
  6.  
  7. // The currency. 
  8. $currency = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = globalpay_add_ngn_currency_symbol($currency_symbol, $currency); 
  12.  

Defined (1)

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

/woocommerce-globalpay.php  
  1. function globalpay_add_ngn_currency_symbol($currency_symbol, $currency) { 
  2. switch ($currency) { 
  3. case 'NGN': 
  4. $currency_symbol = '₦'; 
  5. break; 
  6.  
  7. return $currency_symbol;