Merge pull request #5418 from tamarazuk/backorders_allowed

Introduce woocommerce_product_backorders_allowed filter
This commit is contained in:
Mike Jolley 2014-05-06 15:09:56 +01:00
commit 63fc4262b6
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ class WC_Product {
* @return bool
*/
public function backorders_allowed() {
return $this->backorders === 'yes' || $this->backorders === 'notify' ? true : false;
return apply_filters( 'woocommerce_product_backorders_allowed', $this->backorders === 'yes' || $this->backorders === 'notify' ? true : false, $this->id );
}
/**