Rename “Select Options” Button Shop Page in Woocommerce

The WooCommerce shop page displays variable products with a “Select Options” button by default. However, if you’re looking to change it to something else (such as “View Product“) then I’ve got a useful snippet you can put to use.


Snippet: Change “Select Options” to “View Product”  WooCommerce Shop / Category Pages

add_filter( 'fullstacknews_product_add_to_cart_text', 'fullstacknews_change_select_options_button_text', 9999, 2 );
function fullstacknews_change_select_options_button_text( $label, $product ) {
   if ( $product->is_type( 'variable' ) ) {
      return 'View Product';
   return $label;