WP_REST_Request::set_attributes( array   $attributes )

Sets the attributes for the request.

Parameters

$attributes array required
Attributes for the request.

Source

public function set_attributes( $attributes ) {
	$this->attributes = $attributes;
}

Changuelog

Versionen Description
4.4.0 Introduced.

User Contributed Notes

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