public function __construct($timestamp = false, $args = array()) { if (!defined('EAB_COLLECTION_UPCOMING_WEEKS_COUNT')) { define('EAB_COLLECTION_UPCOMING_WEEKS_COUNT', self::WEEK_COUNT, true); } Eab_Filter::start_date_ordering_set_up(); add_filter('eab-ordering-date_ordering_direction', array($this, 'propagate_direction_filter')); parent::__construct($timestamp, $args); Eab_Filter::start_date_ordering_tear_down(); }
function _eab_tear_down_event_categories_for_ordering($posts) { Eab_Filter::start_date_ordering_tear_down(); return $posts; }