woocommerce_is_purchasable │ filter-hook │ WC 1.0

Returns false if the product cannot be bought.

Usage

add_filter( 'woocommerce_is_purchasable', 'wp_kama_woocommerce_is_purchasable_filter', 10, 2 );

/**
 * Function for `woocommerce_is_purchasable` filter-hook.
 * 
 * @param  $false 
 * @param  $that  
 *
 * @return 
 */
function wp_kama_woocommerce_is_purchasable_filter( $false, $that ){
	// filter...
	return $false;
}
$false
-
$that
-

Where the hook is called

WC_Product_External::is_purchasable()
woocommerce_is_purchasable
WC_Product::is_purchasable()
woocommerce_is_purchasable
WC_Product_Grouped::is_purchasable()
woocommerce_is_purchasable
woocommerce/includes/class-wc-product-external.php 154
return apply_filters( 'woocommerce_is_purchasable', false, $this );
woocommerce/includes/abstracts/abstract-wc-product.php 1785
return apply_filters( 'woocommerce_is_purchasable', $this->exists() && $this->is_viewable() && '' !== $this->get_price(), $this );
woocommerce/includes/class-wc-product-grouped.php 85
return apply_filters( 'woocommerce_is_purchasable', false, $this );

Where the hook is used in WooCommerce

Usage not found.