add_filter('woocommerce_get_availability_text', 'Computec_change_soldout', 10, 2 ); /** * Change Sold Out Text to Something Else */ function Computec_change_soldout ( $text, $product) { if ( !$product->is_in_stock() ) { $text = 'אזל מהמלאי'; } return $text; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter