Skip to content

Instantly share code, notes, and snippets.

@WillBrubaker
Last active August 4, 2019 18:10
Show Gist options
  • Save WillBrubaker/dbd3d21da0af6695f2de to your computer and use it in GitHub Desktop.
Save WillBrubaker/dbd3d21da0af6695f2de to your computer and use it in GitHub Desktop.
Change WooCommerce Bookings "Check Availability" button text
//not sure what to do with this code snippet? See https://www.thathandsomebeardedguy.com/what-do-i-do-with-these-code-snippets/
add_filter( 'woocommerce_booking_single_check_availability_text', 'wooninja_booking_check_availability_text' );
function wooninja_booking_check_availability_text() {
return "MY CUSTOM TEXT";
}
@veracitytt
Copy link

where to apply code?

@veracitytt
Copy link

not working when applied to themes function.php file

@lolepaille
Copy link

Works like a charm. Thanks!

@martinkean
Copy link

Yes it works fine in the functions.php. Shwee-eet! Thanks!

@Yaygr
Copy link

Yaygr commented Mar 26, 2019

Applied to functions.php and it works perfectly. Thank you!

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