WP_REST_Request::set_attributes( array $attributes )

In this article

Sets the attributes for the request.

Parameters

$attributesarrayrequired
Attributes for the request.

Source

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

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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