Remove variation get_name, it will get it from parent.
This commit is contained in:
parent
7b1adfb98f
commit
0b1685c76b
|
@ -120,16 +120,6 @@ class WC_Product_Variation extends WC_Product_Simple {
|
|||
return apply_filters( 'woocommerce_product_add_to_cart_url', $url, $this );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get product name.
|
||||
*
|
||||
* @param string $context
|
||||
* @return string
|
||||
*/
|
||||
public function get_name( $context = 'view' ) {
|
||||
return $this->get_prop( 'name', $context );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get SKU (Stock-keeping unit) - product unique ID.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue