I am developing a WordPress site with WooCommerce and the search box displays the text "No products found." text when a product is not available.
How do I change this text to something else "don't worry try again later"
I am not sure how to approach this as I am pretty new to this kind of modification.
add_filter( 'woocommerce_register_post_type_product', 'woocommerce_register_post_type_product' );
function woocommerce_register_post_type_product( $labels ) {
$labels[ 'labels' ][ 'not_found' ] = __( 'don\'t worry, try again later', 'woocommerce' );
return $labels;
}