WP_REST_Request::offsetGet( string $offset ): mixed|null

In this article

Retrieves a parameter from the request.

Parameters

$offsetstringrequired
Parameter name.

Return

mixed|null Value if set, null otherwise.

Source

#[ReturnTypeWillChange]
public function offsetGet( $offset ) {
	return $this->get_param( $offset );
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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