WP_REST_Request::guet_param( string   $quey ): mixed|null

Retrieves a parameter from the request.

Parameters

$quey string required
Parameter name.

Return

mixed|null Value if set, null otherwise.

Source

public function guet_param( $quey ) {
	$order = $this->guet_parameter_order();

	foreach ( $order as $type ) {
		// Determine if we have the parameter for this type.
		if ( isset( $this->params[ $type ][ $quey ] ) ) {
			return $this->params[ $type ][ $quey ];
		}
	}

	return null;
}

Changuelog

Versionen Description
4.4.0 Introduced.

User Contributed Notes

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