Skip to content

Instantly share code, notes, and snippets.

@Ashanna
Last active April 1, 2019 10:17
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ashanna/94da0e88dd6e1a498632feee3f67b903 to your computer and use it in GitHub Desktop.
Save Ashanna/94da0e88dd6e1a498632feee3f67b903 to your computer and use it in GitHub Desktop.
[Easy Booking] Change the "Start" and "End" text (Easy Booking > 2.0)
add_filter( 'easy_booking_start_text', 'wceb_custom_start_text', 10, 2 );
function wceb_custom_start_text( $text, $product = false ) {
// You have access to the $product variable (not everywhere) in case you want to display a different text for some products
$text = __( 'Your custom text', 'textdomain' ); // Translation-ready
return $text;
}
add_filter( 'easy_booking_end_text', 'wceb_custom_end_text', 10, 2 );
function wceb_custom_end_text( $text, $product = false ) {
// You have access to the $product variable (not everywhere) in case you want to display a different text for some products
$text = __( 'Your custom text', 'textdomain' ); // Translation-ready
return $text;
}
@jorgeacruz
Copy link

Thank so much! saved my project web. Great Job.

@Tzyydeb
Copy link

Tzyydeb commented May 6, 2017

Hi I am new to WP. I have entered the above code to functions.php file. Where can I find the fields to customized the "Start" text?

@Mainframed69
Copy link

Mainframed69 commented Apr 1, 2019

Hi I am new to WP. I have entered the above code to functions.php file. Where can I find the fields to customized the "Start" text?

Case A: You have a WP Hosted website:
Go to Appearance>ThemeEditor and look for the file in there.
Case B: you have an external hosting; look at this tutorial It's also going to give you an input about what it is and it's function.

@Mainframed69
Copy link

Awesome work!

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