WordPress at Your Fingertips
function is not described

WC_Product::is_purchasable() public WC 1.0

Returns false if the product cannot be bought.

{} It's a method of the class: WC_Product{}

Hooks from the method
Return

true|false.

Usage

$WC_Product = new WC_Product();
$WC_Product->is_purchasable();

Code of WC_Product::is_purchasable() WC 5.5.2

<?php
public function is_purchasable() {
	return apply_filters( 'woocommerce_is_purchasable', $this->exists() && ( 'publish' === $this->get_status() || current_user_can( 'edit_post', $this->get_id() ) ) && '' !== $this->get_price(), $this );
}