WP_REST_Request::get_params

Advertisement

Summery Summery

Retrieves merged parameters from the request.

Syntax Syntax

WP_REST_Request::get_params()

Description Description

The equivalent of get_param(), but returns all parameters for the request. Handles merging all the available values into a single array.

Return Return

(array) Map of key to value.

Source Source

File: wp-includes/rest-api/class-wp-rest-request.php

			$this->params[ $order[0] ][ $key ] = $value;
		}
	}

	/**
	 * Retrieves merged parameters from the request.
	 *
	 * The equivalent of get_param(), but returns all parameters for the request.
	 * Handles merging all the available values into a single array.
	 *
	 * @since 4.4.0
	 *
	 * @return array Map of key to value.
	 */
	public function get_params() {

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply