WordPress at Your Fingertips
function is not described

WP_REST_Request::offsetSet() public WP 4.4.0

Sets a parameter on the request.

{} It's a method of the class: WP_REST_Request{}

No Hooks.

Return

null. Nothing.

Usage

$WP_REST_Request = new WP_REST_Request();
$WP_REST_Request->offsetSet( $offset, $value );
$offset(string) (required)
Parameter name.
$value(mixed) (required)
Parameter value.

Code of WP_REST_Request::offsetSet() WP 5.8.3

public function offsetSet( $offset, $value ) {
	$this->set_param( $offset, $value );
}