Skip to content

Instantly share code, notes, and snippets.

@NateWr
NateWr / replace-booking-page-for-rtb.php
Last active August 29, 2015 14:17
Replace the content of the Booking Page when a form is successfully submitted.
<?php
/**
* Plugin Name: Replace Booking Page Content for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Replace the content of the Booking Page when a form is successfully submitted.
* Version: 0.0.1
* Author: Theme of the Crop
* Author URI: http://themeofthecrop.com
* License: GNU General Public License v2.0 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@NateWr
NateWr / max-capacity-for-rtb.php
Last active April 16, 2019 07:35
Automatically block bookings when a max per-day capacity is hit.
<?php
/**
* Plugin Name: Max Capacity for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Modifies the Restaurant Reservations plugin to rejects bookings if a max capacity limit has been reached for the day.
* Version: 1.0
* Author: Theme of the Crop
* Author URI: http://themeofthecrop.com
* License: GNU General Public License v2.0 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@NateWr
NateWr / max-bookings-for-rtb.php
Created May 15, 2015 14:00
Automatically block bookings when a max per-day booking limit is hit.
<?php
/**
* Plugin Name: Max Bookings for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Modifies the Restaurant Reservations plugin to rejects bookings if a max bookings limit has been reached for the day.
* Version: 1.0
* Author: Theme of the Crop
* Author URI: http://themeofthecrop.com
* License: GNU General Public License v2.0 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@NateWr
NateWr / remove-party-for-rtb.php
Last active August 18, 2018 11:52
Remove the party field from your Restaurant Reservations booking form.
<?php
/**
* Plugin Name: Remove Party Field for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Removes the party field and prevents the associated errors from occurring.
* Version: 1.0
* Author: Theme of the Crop
* Author URI: http://themeofthecrop.com
* License: GNU General Public License v2.0 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@NateWr
NateWr / add-business-type-for-bp.php
Created September 7, 2015 08:17
Modifies the Business Profile plugin to include a new business type option from the Schema.org collection.
<?php
/**
* Plugin Name: Add Business Type Option for Business Profile
* Plugin URI: http://themeofthecrop.com
* Description: Modifies the Business Profile plugin to include a new business type option from the Schema.org collection.
* Version: 0.0.1
* Author: Theme of the Crop
* Author URI: http://themeofthecrop.com
* License: GNU General Public License v2.0 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@NateWr
NateWr / wpml-config.xml
Created September 28, 2015 14:02
Food and Drink Menu wpml-config.xml file for Polylang compatibility (fixes issues with menu sections)
<wpml-config>
<custom-types>
<custom-type translate="1">fdm-menu</custom-type>
<custom-type translate="1">fdm-menu-item</custom-type>
</custom-types>
<taxonomies>
<taxonomy translate="1">fdm-menu-section</taxonomy>
</taxonomies>
<custom-fields>
<custom-field action="translate">fdm_item_price</custom-field>
@NateWr
NateWr / custom-late-booking-for-rtb.php
Created October 28, 2015 09:58
Add options to block bookings 2, 3 or 4 days in advance in the Restaurant Reservations plugin.
<?php
/**
* Plugin Name: Custom Late Bookings Options for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Add options to block bookings 2, 3 or 4 days in advance in the Restaurant Reservations plugin.
* Version: 0.0.1
* Author: Theme of the Crop
* Author URI: http://themeofthecrop.com
* License: GNU General Public License v2.0 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@NateWr
NateWr / hide-time-for-rtb.php
Created November 17, 2015 09:07
Hides the time field in the booking form. Requires PHP 5.3+
<?php
/**
* Plugin Name: Hidden Time Field for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Hides the time field in the booking form. Requires PHP 5.3+
* Version: 1.0
* Author: Theme of the Crop
* Author URI: http://themeofthecrop.com
* License: GNU General Public License v2.0 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@NateWr
NateWr / custom-csv-delimiter-for-ebfrtb.php
Created February 1, 2016 14:04
Change the delimiter used when generating CSV files with the Export Bookings for Restaurant Reservations plugin.
<?php
/**
* Plugin Name: Custom CSV Delimiter for Bookings Exports
* Plugin URI: http://themeofthecrop.com
* Description: Change the delimiter used when generating CSV files with the Export Bookings for Restaurant Reservations plugin.
* Version: 0.0.1
* Author: Theme of the Crop
* Author URI: http://themeofthecrop.com
* License: GNU General Public License v2.0 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@NateWr
NateWr / increase-max-party-size-option-for-rtb.php
Created February 9, 2016 10:12
Increase the maximum party size displayed in the settings.
<?php
/**
* Plugin Name: Increase Party Size Options for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Increase the maximum party size displayed in the settings.
* Version: 0.0.1
* Author: Theme of the Crop
* Author URI: http://themeofthecrop.com
* License: GNU General Public License v2.0 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html