close

WP_REST_Request::offsetUnset( string $offset )

In this article

Removes a parameter from the request.

Parameters

$offsetstringrequired
Parameter name.

Source

#[ReturnTypeWillChange]
public function offsetUnset( $offset ) {
	$order = $this->get_parameter_order();

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

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.