Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter proy01

    (@proy01)

    Its cool….i found it. I wont put the solution on here in case Nate doesnt want it out there!!

    Hi proy01,

    No, please share your solution. I’ve deliberately designed the plugin to be very extensible so that developers can build complex customizations on top of it.

    There are two recommendations I’d make for changing this:

    1. Use a translation. All of the form labels can be translated, so it’s easiest to just load a custom translation. If you’re not sure how to do this, try Loco Translate, which lets you generate translations from your WordPress admin panel.

    2. If you’re comfortable tweaking some PHP code, you can hook into the array which defines the booking form fields and overwrite the titles with whatever you’d like. This gist shows how to modify the label for the Party field. To change the Book a Table, you’d replace this line:

    $fields['reservation']['fields']['party']['title'] = __( 'Number in your group', 'modified-party-for-rtb' );

    With this line:

    $fields['reservation']['legend'] = 'Your New Title';

    Hi, I’m trying to change that title also, and also have the flexibility to change the other titles or wording on the Reservation form.

    Would you be able to be a little more specific where that line of code above can be found, I’m currently, a bit randomly looking at the php files under the edit link on the plugin page.

    last checked here:

    restaurant-reservations/includes/WP_List_Table.BookingsTable.class.php

    can you please help

    Hi olesuper8,

    The line of code above is in this micro-plugin. You’ll need a plain text editor. You’ll want to click the Download Gist link on the right (on the micro-plugin’s page), open the .php file in your text editor, adjust that line of code, then save it and upload it to your /wp-content/plugins directory. You’ll then be able to activate it from your WordPress plugins page.

    DOH! sorry Nate, that’ll teach me for carrying on till 2am,,, hahaha…

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Change Book a Table Title’ is closed to new replies.