WordPress at a glance
function is not described

WP_REST_Request::offsetUnset() public WP 4.4.0

Removes a parameter from 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->offsetUnset( $offset );
$offset(string) (required)
Parameter name.

Changelog

Since 4.4.0 Introduced.

Code of WP_REST_Request::offsetUnset() WP 5.5.1

<?php
public function offsetUnset( $offset ) {
	$order = $this->get_parameter_order();

	// Remove the offset from every group.
	foreach ( $order as $type ) {
		unset( $this->params[ $type ][ $offset ] );
	}
}