public function date_filter_post() { if (!($this->args['start_date'] || $this->args['end_date'])) { return; } remove_filter('posts_where', array($this, 'payments_where')); }