WP_REST_Request::set_param

Advertisement

Summery Summery

Sets a parameter on the request.

Syntax Syntax

WP_REST_Request::set_param( string $key, mixed $value )

Parameters Parameters

$key

(Required) Parameter name.

$value

(Required) Parameter value.

Source Source

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

	 * @param string $key   Parameter name.
	 * @param mixed  $value Parameter value.
	 */
	public function set_param( $key, $value ) {

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply