Created
March 26, 2018 20:33
-
-
Save psamsotha/2276b0a0bd2d36fdd9b7f86625c2e438 to your computer and use it in GitHub Desktop.
Override function in WooCommerce to change View Cart Text.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function woocommerce_widget_shopping_cart_button_view_cart() { | |
echo '<a href="' . esc_url( wc_get_cart_url() ) . '" class="button wc-forward">' . esc_html__( 'View cart', 'woocommerce' ) . '</a>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment