WP_Async_Request::get_query_args()protectedWC 1.0

Get query args

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

Hooks from the method

Return

Array.

Usage

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

Code of WP_Async_Request::get_query_args() WC 6.8.2

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

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

	/**
	 * Filters the post arguments used during an async request.
	 *
	 * @param array $url
	 */
	return apply_filters( $this->identifier . '_query_args', $args );
}