woocommerce_is_purchasable, $this->exists(

woocommerce_is_purchasable, $this->exists(

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_is_purchasable, $this->exists(') is found 1 times:

  • /includes/abstracts/abstract-wc-product.php line 1768
    		 * @since 2.7.0
    		 * @param bool          $purchasable Whether the product is purchasable.
    		 * @param WC_Product    $product     Product object.
    		 */
    		return apply_filters( 'woocommerce_is_purchasable', $this->exists() && ( ProductStatus::PUBLISH === $this->get_status() || current_user_can( 'edit_post', $this->get_id() ) ) && '' !== $this->get_price(), $this );
    	}
    
    	/**
    	 * Returns whether or not the product is on sale.
    	 *
    	 * @param  string $context What the value is for. Valid values are view and edit.