WordPress at a glance
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.

Changelog

Since 4.4.0 Introduced.

Code of WP_REST_Request::offsetSet() WP 5.5.2

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