WP_REST_Request::offsetSet()
Sets a parameter on the request.
Method of the class: WP_REST_Request{}
No Hooks.
Return
null
. Nothing.
Usage
$WP_REST_Request = new WP_REST_Request(); $WP_REST_Request->offsetSet( $offset, $value );
- $offset(string) (required)
- Parameter name.
- $value(mixed) (required)
- Parameter value.
WP_REST_Request::offsetSet() WP REST Request::offsetSet code WP 6.1.1
public function offsetSet( $offset, $value ) { $this->set_param( $offset, $value ); }