Skip to content

Instantly share code, notes, and snippets.

@WillBrubaker
Created December 15, 2014 18:38
Show Gist options
  • Save WillBrubaker/0b071e18eea975b321d5 to your computer and use it in GitHub Desktop.
Save WillBrubaker/0b071e18eea975b321d5 to your computer and use it in GitHub Desktop.
Filter WooCommerce bookings label
<?php
/*
Change the 'Persons' label to 'Qty. of Chairs'
*/
add_filter( 'booking_form_fields', 'wooninja_booking_form_fields' );
function wooninja_booking_form_fields( $fields ) {
$fields['wc_bookings_field_persons']['label'] = 'Qty. of Chairs';
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment