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.7.0

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