Last active
April 1, 2019 10:17
-
-
Save Ashanna/94da0e88dd6e1a498632feee3f67b903 to your computer and use it in GitHub Desktop.
[Easy Booking] Change the "Start" and "End" text (Easy Booking > 2.0)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
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?
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.
Awesome work!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank so much! saved my project web. Great Job.