woocommerce_product_get_weight filter Closes #7319

This commit is contained in:
Mike Jolley 2015-02-10 11:18:35 +00:00
parent 67610286f7
commit 893babaaef
1 changed files with 2 additions and 2 deletions

View File

@ -701,11 +701,11 @@ class WC_Product {
/** /**
* Returns the product's weight. * Returns the product's weight.
* * @todo refactor filters in this class to naming woocommerce_product_METHOD
* @return string * @return string
*/ */
public function get_weight() { public function get_weight() {
return ( $this->weight ) ? $this->weight : ''; return apply_filters( 'woocommerce_product_get_weight', $this->weight ? $this->weight : '' );
} }
/** /**