public function status($status = null)
    {
        if (is_null($status)) {
            unset($this->filters['post_status']);
        } else {
            $this->filters['post_status'] = $status;
        }

        return $this;
    }
public function status($status = null)
    {
        if (is_null($status)) {
            unset($this->filters['post_status']);
        } else {
            $this->filters['post_status'] = $status;
        }

        return $this;
    }
public function status ( $ status = null ) { if ( is_null ( $ status ) ) { unset ( $ this -> filters [ 'post_status' ] ) ; } else { $ this -> filters [ 'post_status' ] = $ status ; } return $ this ; }
Adds a 'post_status' condition
@param  string $status
@return Query
Adds a post_status condition