WP_REST_Request::offsetExists()publicWP 1.0

[ReturnTypeWillChange]

{} 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->offsetExists( $offset );
$offset (required)
-

Code of WP_REST_Request::offsetExists() WP 5.9.3

public function offsetExists( $offset ) {
	$order = $this->get_parameter_order();

	foreach ( $order as $type ) {
		if ( isset( $this->params[ $type ][ $offset ] ) ) {
			return true;
		}
	}

	return false;
}