Skip to content

Snippet: Change WooCommerce “Out Of Stock” Text

add_filter( 'wpex_woo_outofstock_text', function( $text ) {
	return esc_html__( 'MY CUSTOM TEXT', 'wpex' );
}, 20 );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top