WP_Async_Request::get_query_args()protectedWC 1.0

Get query args

Метод класса: WP_Async_Request{}

Хуки из метода

Возвращает

Массив.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_query_args();

Код WP_Async_Request::get_query_args() WC 8.1.1

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 );
}