Skip to content

Instantly share code, notes, and snippets.

@NateWr
NateWr / menu-schema-url-for-bp.php
Created November 23, 2016 10:09
Add field for any arbitrary URL for the Menu schema for their Business profile. This only works with the main location.
<?php
/**
* Plugin Name: Menu Schema URL for Business Profile
* Plugin URI: http://themeofthecrop.com
* Description: Add field for any arbitrary URL for the Menu schema for their Business profile. This only works with the main location.
* 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 / prevent-double-submission-for-rtb.php
Last active March 21, 2017 16:18
Prevent Double Click Submissions for Restaurant Reservations
<?php
/**
* Plugin Name: Prevent Double Click Submissions for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Disables the submit button when it is clicked.
* 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 / admin-any-party-size-for-rtb.php
Created May 1, 2017 09:03
Allow the admin to set any party size when adding or editing bookings.
<?php
/**
* Plugin Name: Allow Admin Override of Party Limits for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Allow the admin to set any party size when adding or editing bookings.
* 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 / admin-no-schedule-restrictions-for-rtb.php
Last active May 10, 2017 08:37
Allow the admin to bypass any scheduling restrictions to make a booking in the backend.
<?php
/**
* Plugin Name: Allow Admin Override of Scheduling Restrictions for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Allow the admin to create a booking at any time.
* 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 / mailchimp-no-double-optin-for-rtb.php
Created June 21, 2017 08:24
Disable double opt-in for MailChimp for Restaurant Reservations
<?php
/**
* Plugin Name: Disable double opt-in for MailChimp for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Modify the subscription request sent to MailChimp so that users do not receive the double opt-in email confirmation from MailChimp.
* 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 / edd-retro-license-emails.php
Created July 23, 2014 21:36
Send an email with the license key to customers when retroactively generating licenses with Easy Digital Download's Software Licensing.
<?php
/**
* Plugin Name: Retroactive License Emails for EDD Software Licensing
* Plugin URI: http://themeofthecrop.com
* Description: Send an email with the license key to customers when retroactively generating licenses with Easy Digital Download's Software Licensing.
* 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 / block-aol-for-rtb.php
Created August 25, 2017 08:30
Prevent bookings from being made with @aol.com email addresses.
<?php
/**
* Plugin Name: Block AOL bookings for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Prevent bookings from being made with @aol.com email addresses.
* 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 / 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 / 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 / dont-require-email-for-rtb.php
Last active November 6, 2018 09:37
Prevents an error from being displayed if the user does not enter an email address.
<?php
/**
* Plugin Name: Don't Require Email Field for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Prevents an error from being displayed if the user does not enter an email address.
* 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