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

(string) (Required) Parameter name.

$value

(mixed) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.