woocommerce_get_formatted_variation

The WooCommerce woocommerce get formatted variation function.

Description

woocommerce_get_formatted_variation( (string) $variation = '', (bool) $flat = false ); 

Parameters (2)

0. $variation — Optional. (string) => ''
The variation.
1. $flat — Optional. (bool) => false
The flat.

Usage

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

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_get_formatted_variation( $variation = '', $flat = false ) { 
  2. return wc_get_formatted_variation( $variation, $flat );