PHP code snippet – How to change go to shop button text in woocommerce?
add_filter( 'gettext', 'change_woocommerce_return_to_shop_text', 20, 3 ); function change_woocommerce_return_to_shop_text( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Go to the shop' : $translated_text = __( 'Browse Shop', 'woocommerce' ); break; } return $translated_text; }