Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' );
- function custom_woocommerce_product_add_to_cart_text($text) {
- global $product;
- $product_type = $product->get_type();
- if($product_type == 'auction' && is_page(194)){
- return 'New bid text';
- };
- return $text;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement