Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartduff/a1ea175d0538c8ca6d5d9d815397f03f to your computer and use it in GitHub Desktop.
Save stuartduff/a1ea175d0538c8ca6d5d9d815397f03f to your computer and use it in GitHub Desktop.
Change WooCommerce Bookings single add to cart text "Book Now"
function change_booking_single_add_to_cart_text() {
echo 'Changed Text';
}
add_filter( 'woocommerce_booking_single_add_to_cart_text','change_booking_single_add_to_cart_text' );
@RavanH
Copy link

RavanH commented Dec 12, 2022

A filter function should normally return a string, not echo it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment