Your cart is currently empty!
Show Out of Stock Products Even If WooCommerce Settings Hide Them
This custom loop for WooCommerce enables you to show a grid of out of stock ( OOS ) products even when your WooCommerce > Settings > Products > Inventory are set to hide them as seen in this image :
The plugin contains code to :
- Over ride the out of stock visibility settings
- Create a custom loop using WP_Query
- Add a Meta Query with a key for _stock_status and a value for outofstock
- Hook into any single product page position
The code gets the woocommerce_hide_out_of_stock_items option key used to hide out of stock products ( as seen in the above image ) and updates it to no so the custom loop can still include them then updates the option after the loop resets so all other loops work based on the setting.
Installation & Usage
Install the plugin as you would any other WordPress plugin or copy and paste the code into your child themes functions file or custom PHP code snippets plugin.
Not exactly what you’re looking for?
Get A Qoute
Product Updates
Code Guarantee
Customer Support
You must be logged in to post a comment.