WordPress at Your Fingertips
function is not described

WC_Object_Query::get_default_query_vars() protected WC 1.0

Get the default allowed query vars.

{} It's a method of the class: WC_Object_Query{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_default_query_vars();

Code of WC_Object_Query::get_default_query_vars() WC 5.5.2

<?php
protected function get_default_query_vars() {

	return array(
		'name'           => '',
		'parent'         => '',
		'parent_exclude' => '',
		'exclude'        => '',

		'limit'          => get_option( 'posts_per_page' ),
		'page'           => 1,
		'offset'         => '',
		'paginate'       => false,

		'order'          => 'DESC',
		'orderby'        => 'date',

		'return'         => 'objects',
	);
}