Ejemplo n.º 1
0
 /**
  * Prepare args for parent filter_variable_prices method
  *
  * @since 1.1.0
  *
  * @param string $price Formatted price
  * @param \WC_Product $object Product object
  *
  * @return string
  */
 protected function prepare_filter_variable_prices($price, $object)
 {
     return parent::filter_variable_prices($price, $object->id);
 }
Ejemplo n.º 2
0
 /**
  * Sanatize price display
  *
  * @since 0.0.9
  *
  * @access protected
  *
  * @param float|string $price
  *
  * @return string
  */
 protected function sanatize_price($price)
 {
     if (function_exists('edd_sanitize_amount')) {
         return edd_sanitize_amount($price);
     } else {
         return parent::sanatize_price($price);
     }
 }