Home › Forums › Support › woocommerce – change the out of stock message This topic has 3 replies, 2 voices, and was last updated 7 years, 8 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts June 2, 2018 at 5:08 am #590030 Donna Hi is there a simple way to change out of stock notice on a product to read sold out instead? Thank you. June 2, 2018 at 5:32 am #590044 DavidStaff Customer Support Hi Donna, with this code snippet: add_filter( 'woocommerce_get_availability', 'db_custom_get_availability', 1, 2); function db_custom_get_availability( $availability, $_product ) { // Change Out of Stock Text if ( ! $_product->is_in_stock() ) { $availability['availability'] = __('Sold Out', 'woocommerce'); } return $availability; } https://docs.generatepress.com/article/adding-php/ June 2, 2018 at 6:34 am #590079 Donna Thank you so much for that. Where do I add it? June 2, 2018 at 6:38 am #590081 DavidStaff Customer Support Hi Donna, this article explains the options for adding PHP, i would recommend the Code Snippets plugin that is mentioned: https://docs.generatepress.com/article/adding-php/ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In