Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WooCommerce - Change add-to-cart text
- add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_add_to_cart_text' );
- function custom_add_to_cart_text( $default ) {
- if( 'Read more' == $default ) {
- $default = 'View';
- }
- return $default;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement