Skip to content

Instantly share code, notes, and snippets.

View littlepackage's full-sized avatar

Little Package littlepackage

View GitHub Profile
/**
* Constructor
*/
public function __construct() {
parent::__construct( 'edd', null );
// For consistent time-stamping
$this->timestamp = time();
@littlepackage
littlepackage / dequeue_events_style
Last active August 29, 2015 14:06
Dequeue Tribe Events CSS if not on Events Page - Wordpress
function dequeue_tribe_events_style() {
if ( !tribe_is_event_query() ) {
// one or more of the following styles will need to be dequeued depending on the default stylesheet used
wp_dequeue_style('tribe-events-calendar-override-style');
wp_dequeue_style('tribe-events-calendar-style'); // skeleton or full
wp_dequeue_style('tribe-events-full-calendar-style'); // for fully styled tribe
}