Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hazephase/a5721eeefb1cbe35f61ccf28c2d25d04 to your computer and use it in GitHub Desktop.
Save hazephase/a5721eeefb1cbe35f61ccf28c2d25d04 to your computer and use it in GitHub Desktop.
Change the WooCommerce Bookings "Persons" label to something else
add_filter( 'booking_form_fields', 'wooninja_booking_form_fields' );
function wooninja_booking_form_fields( $fields ) {
$fields['wc_bookings_field_persons']['label'] = 'SOMETHING ELSE';
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment