Skip to content

Instantly share code, notes, and snippets.

@ChrisScottUK
ChrisScottUK / tw_custom_upcoming_events_widget.php
Last active November 24, 2015 00:01 — forked from Pebblo/tw_custom_upcoming_events_widget.php
This is a copy of the original EE upcoming events widget that includes a field to allow you to select the order of the events.
<?php
/*
Plugin Name: Custom EE Upcoming Events Widget
Description: Add a custom Upcoming Events widger with a 'sort' field to allow you to sort ASC or DESC.
Author: Tony Warwick
Version: 1.0
*/
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */
class Custom_Upcoming_Events extends WP_Widget {