Give_Payments_Query::__construct PHP Méthode

__construct() public méthode

Not all of these are valid arguments that can be passed to WP_Query. The ones that are not, are modified before the query is run to convert them to the proper syntax.
Since: 1.0
public __construct ( $args = [] )
$args array The array of arguments that can be passed in and used for setting up this payment query.
    public function __construct($args = array())
    {
        $defaults = array('output' => 'payments', 'post_type' => array('give_payment'), 'start_date' => false, 'end_date' => false, 'number' => 20, 'page' => null, 'orderby' => 'ID', 'order' => 'DESC', 'user' => null, 'status' => give_get_payment_status_keys(), 'meta_key' => null, 'year' => null, 'month' => null, 'day' => null, 's' => null, 'search_in_notes' => false, 'children' => false, 'fields' => null, 'give_forms' => null);
        $this->args = wp_parse_args($args, $defaults);
        $this->init();
    }