add filter to method get_sku()
This commit is contained in:
parent
c66f2b8232
commit
ea476af2ca
|
@ -126,7 +126,7 @@ class WC_Product {
|
|||
* @return string
|
||||
*/
|
||||
public function get_sku() {
|
||||
return $this->sku;
|
||||
return apply_filters( 'woocommerce_get_sku', $this->sku, $this );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue