Created
January 30, 2015 22:30
-
-
Save MindyPostoff/7fdb43fce328049de1b9 to your computer and use it in GitHub Desktop.
Using Bookings to Sell Limited Products Daily
This file contains hidden or 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 this function to your theme's functions.php file | |
* to replace the "Persons" string in the Bookings form | |
* to be "Number of Loaves". | |
*/ | |
function my_text_strings( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Persons' : | |
$translated_text = __( 'Number of Loaves', 'woocommerce-bookings' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'my_text_strings', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment