WooCommerce Quantity Available
-
I am somewhat familiar with how java functions work, but have never tried using a WP function myself.
Looking to access WooCommerce quantity available data for use on a page, to display on the frontend.
I found the function, but am unsure on how to use it? Help is super appreciated:
128 /**
129 * Returns number of items available for sale.
130 *
131 * @access public
132 * @return int
133 */
134 function get_stock_quantity() {
135 return $this->managing_stock() ? apply_filters( ‘woocommerce_stock_amount’, $this->stock ) : ”;
136 }I searched for a shortcode, but found none
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WooCommerce Quantity Available’ is closed to new replies.