Accessing Stock Level Data | WordPress.org

[ad_1]

Hi,

Thanks for the latest release which seems to work well. I have a problem tring to access stock data in a snippet to change some of the display text on the product page – when I use $product->get_stock_quantity();, I now get a critical error. This worked before upgrading to the latest version.

Any help with this would be greatly appreciated.

Regards Simon Silver

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer