Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Using Bookings to Sell Limited Products Daily
/** 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' );
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