woocommerce_get_formatted_product_name

Get product name with extra details such as SKU price and attributes.

Description

(string) woocommerce_get_formatted_product_name( (WC_Product) $product ); 

Used within admin.

Returns (string)

Parameters (1)

0. $product (WC_Product)
The product.

Usage

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

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_get_formatted_product_name( $product ) { 
  2. wc_deprecated_function( __FUNCTION__, '2.1', 'WC_Product::get_formatted_name()' ); 
  3. return $product->get_formatted_name();