woocommerce_get_availability_class

woocommerce_get_availability_class

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_get_availability_class') is found 1 times:

  • /includes/abstracts/abstract-wc-product.php line 2201
    			$class = 'available-on-backorder';
    		} else {
    			$class = 'in-stock';
    		}
    		return apply_filters( 'woocommerce_get_availability_class', $class, $this );
    	}
    
    	/**
    	 * Set the defined value of the Cost of Goods Sold for this product.
    	 *
    	 * WARNING! If the Cost of Goods Sold feature is disabled this method will have no effect.