WP_REST_Request::offsetUnset( string $offset )

Removes a parameter from the request.

Parameters Parameters


(string) (Required) Parameter name.

Top ↑

Source Source

File: wp-includes/rest-api/class-wp-rest-request.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 ] );

Top ↑

Changelog Changelog

Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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