woocommerce_is_sold_individually filter-hookWC 1.0

Check if a product is sold individually (no quantities).

Usage

add_filter( 'woocommerce_is_sold_individually', 'wp_kama_woocommerce_is_sold_individually_filter', 10, 2 );

/**
 * Function for `woocommerce_is_sold_individually` filter-hook.
 * 
 * @param  $true === $this->get_sold_individually 
 * @param  $that                                  
 *
 * @return 
 */
function wp_kama_woocommerce_is_sold_individually_filter( $true === $this->get_sold_individually, $that ){

	// filter...
	return $true === $this->get_sold_individually;
}
$true === $this->get_sold_individually
-
$that
-

Where the hook is called

WC_Product::is_sold_individually()
woocommerce_is_sold_individually
woocommerce/includes/abstracts/abstract-wc-product.php 1564
return apply_filters( 'woocommerce_is_sold_individually', true === $this->get_sold_individually(), $this );

Where the hook is used in WooCommerce

Usage not found.