How to Change Out of Stock Text in WooCommerce - eCommerce Thesis

How to Change Out of Stock Text in WooCommerce

add_filter('woocommerce_get_availability', 'availability_filter_func');

function availability_filter_func($availability) {
	$availability['availability'] = str_ireplace('Out of stock', 'Sold', $availability['availability']);
	return $availability;
}

Leave a Reply