Skip to content

Instantly share code, notes, and snippets.

@WillBrubaker
Last active August 4, 2019 18:10
Show Gist options
  • Select an option

  • Save WillBrubaker/dbd3d21da0af6695f2de to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

where to apply code?

@veracitytt

Copy link
Copy Markdown

not working when applied to themes function.php file

@lolepaille

Copy link
Copy Markdown

Works like a charm. Thanks!

@martinkean

Copy link
Copy Markdown

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

@Yaygr

Yaygr commented Mar 26, 2019

Copy link
Copy Markdown

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