WCML_WC_Name_Your_Price

The WooCommerce Multilingual WCML WC Name Your Price class.

Defined (1)

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

/compatibility/class-wcml-wc-name-your-price.php  
  1. class WCML_WC_Name_Your_Price{ 
  2.  
  3. function __construct() { 
  4.  
  5. add_action('init', array($this, 'init'), 9); 
  6.  
  7.  
  8. function init() { 
  9. if( !is_admin() ) { 
  10. add_filter('woocommerce_raw_suggested_price', array($this, 'product_price_filter'), 10, 2);  
  11. add_filter('woocommerce_raw_minimum_price', array($this, 'product_price_filter'), 10, 2);  
  12.  
  13. function product_price_filter($price, $product) { 
  14.  
  15. return apply_filters('wcml_raw_price_amount', $price ); 
  16.  
  17.