Skip to content

Instantly share code, notes, and snippets.

@NateWr
NateWr / RemoveIncompleteFromActiveListPlugin.inc.php
Last active February 27, 2019 11:18
Remove incomplete submissions from the active submissions list in OJS/OMP.
<?php
class RemoveIncompleteFromActiveListPlugin extends GenericPlugin {
/**
* Initialize the plugin
*/
public function init() {
HookRegistry::register ('TemplateManager::display', array($this, 'modifyTemplateData'));
}
/**
@NateWr
NateWr / new-shortcode-name-for-rtb.php
Created January 21, 2019 09:20
Duplicate the [booking-form] shortcode with a [rtb-booking-form] shortcode.
<?php
/**
* Plugin Name: New Shortcode Name for Restaurant Reservations
* Plugin URI: http://themeofthecrop.com
* Description: Duplicate the [booking-form] shortcode with a [rtb-booking-form] shortcode.
* 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 / show-shortcodes-for-fdm.php
Created December 20, 2018 10:18
Show the menu and menu item shortcodes in the admin lists.
<?php
/**
* Plugin Name: Show Shortcodes for Food and Drink Menu
* Plugin URI: http://themeofthecrop.com
* Description: Show the menu and menu item shortcodes in the admin lists.
* 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 / 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 / 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 / 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 / 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 / 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 / custom-late-booking-for-rtb.php
Last active March 5, 2019 09:03
Add late booking options to block bookings 2 hours 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 hours 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 / 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