woocommerce_product_is_in_stock

woocommerce_product_is_in_stock

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

apply_filters('woocommerce_product_is_in_stock') is found 1 times:

  • /includes/abstracts/abstract-wc-product.php line 1736
    		 * @since 2.7.0
    		 * @param bool          $in_stock Whether the product is in stock.
    		 * @param WC_Product    $product  Product object.
    		 */
    		return apply_filters( 'woocommerce_product_is_in_stock', ProductStockStatus::OUT_OF_STOCK !== $this->get_stock_status(), $this );
    	}
    
    	/**
    	 * Checks if a product needs shipping.
    	 *
    	 * @return bool