WP_REST_Request::set_default_params( array $params )

In this article

Sets default parameters.

Description

These are the parameters set in the route registration.

Parameters

$paramsarrayrequired
Parameter map of key to value.

Source

public function set_default_params( $params ) {
	$this->params['defaults'] = $params;
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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