Give_Payments_Query::date_filter_pre PHP Method

date_filter_pre() public method

If querying a specific date, add the proper filters.
Since: 1.0
public date_filter_pre ( ) : void
return void
    public function date_filter_pre()
    {
        if (!($this->args['start_date'] || $this->args['end_date'])) {
            return;
        }
        $this->setup_dates($this->args['start_date'], $this->args['end_date']);
        add_filter('posts_where', array($this, 'payments_where'));
    }