WP_Async_Request::get_query_args()protectedWC 1.0

Get query args

Method of the class: WP_Async_Request{}

No Hooks.

Return

Array.

Usage

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

WP_Async_Request::get_query_args() code WC 8.6.1

protected function get_query_args() {
	if ( property_exists( $this, 'query_args' ) ) {
		return $this->query_args;
	}

	return array(
		'action' => $this->identifier,
		'nonce'  => wp_create_nonce( $this->identifier ),
	);
}