Labels for form fields and buttons are pre-defined in Cab Grid Pro so that they can be mapped to translations. It is rare that these labels would need to be changed, but in some circumstances it may be necessary – for example, in re-purposing Cab Grid for a distinct use, other than taxi journeys.

With this in mind, Cab Grid Pro v4.2 provides the means to update field labels & buttons displayed in the price calculator interface. However, this is an advanced feature and therefore it is not part of the main admin interface. Rather, it must be done by editing one of the plugin’s PHP files: _settings.php

This has the drawback that updating the plugin will overwrite any changes made manually. It is recommended to keep a backup of the file or its contents so it can be restored when an update is applied.

How to edit buttons & field labels using WordPress

Note: You must have file editing enabled to achieve this (see https://codex.wordpress.org/Hardening_WordPress#Disable_File_Editing )

  1. From the WordPress admin choose Plugins > Editor
  2. From the drop-down menu on the top right of the editor window labelled “Select plugin to edit” choose, “Cab Grid Pro” and click Select (this loads the plugin code for editing)
  3. From the list of plugin files on the left, click “cab-grid-pro/_settings.php” (this loads the code for that file in the editor window)
  4. Enter new values for each of the variables between the quotes. For example:
    $cabGridProButtonLabelBook="Reserve";
  5. Click the Update File button once all changes have been made.


When editing the file, comments show the default (original) text for the field in question and where it is used (or it’s purpose) within Cab Grid.

Tags: , , , , ,

Pin It on Pinterest

Share This

Share this post with your friends!