woocommerce_price

The WooCommerce woocommerce price function.

Description

woocommerce_price( $price, (array) $args = array() ); 

Parameters (2)

0. $price
The price.
1. $args — Optional. (array) => array()
The args.

Usage

  1. if ( !function_exists( 'woocommerce_price' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The price. 
  5. $price = null; 
  6.  
  7. // The args. 
  8. $args = array(); 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = woocommerce_price($price, $args); 
  12.  

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_price( $price, $args = array() ) { 
  2. wc_deprecated_function( __FUNCTION__, '3.0', 'wc_price' ); 
  3. return wc_price( $price, $args );