%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/cwg/wp-content/plugins/woocommerce-multi-currency/frontend/
Upload File :
Create Path :
Current File : //var/www/cwg/wp-content/plugins/woocommerce-multi-currency/frontend/cryptocurrency.php

<?php

/**
 * Class WOOMULTI_CURRENCY_Frontend_Cryptocurrency
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class WOOMULTI_CURRENCY_Frontend_Cryptocurrency {
	protected $settings;

	public function __construct() {
		//		$this->settings = new WOOMULTI_CURRENCY_Data();
		$this->settings = WOOMULTI_CURRENCY_Data::get_ins();
		if ( $this->settings->get_enable() ) {
			/*Fix round function with case default decimals = 0 and other currency decimal > 0*/
			add_filter( 'woocommerce_currencies', array( $this, 'woocommerce_currencies' ) );
			add_filter( 'woocommerce_currency_symbols', array( $this, 'woocommerce_currency_symbols' ) );

		}
	}

	/**
	 * @param $currency
	 *
	 * @return mixed
	 */
	public function woocommerce_currencies( $currency ) {
		$currency['LTC'] = __( 'Litecoin', 'woocommerce-multi-currency' );
		$currency['ETH'] = __( 'Ethereum', 'woocommerce-multi-currency' );

		return $currency;
	}

	/**
	 *
	 */
	public function woocommerce_currency_symbols( $symbols ) {
		$symbols['LTC'] = "LTC";
		$symbols['ETH'] = "ETH";

		return $symbols;
	}


}

Zerion Mini Shell 1.0