Change WooCommerce "Out Of Stock" Text

To change the WooCommerce "Out of Stock" text, add the following PHP snippet at the end of your functions.php file:

function my_woo_outofstock_text( $text ) {
	$text = __( 'MY CUSTOM TEXT', 'ocean' );
	return $text;
}
add_filter( 'ocean_woo_outofstock_text', 'my_woo_outofstock_text', 20 );

Replace MY CUSTOM TEXT with the text you want to be displayed. For instance, Currently Unavailable.

All PHP snippets should be added via a child theme's functions.php file.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.