Change the out of stock stock in WooCommerce in the OceanWP theme

Change the out of stock stock in WooCommerce in the OceanWP theme on child sites.

Snippet Type

Execute on Child Sites

Snippet

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