WP_REST_Request::get_route

Advertisement

Summery Summery

Retrieves the route that matched the request.

Syntax Syntax

WP_REST_Request::get_route()

Return Return

(string) Route matching regex.

Source Source

File: wp-includes/rest-api/class-wp-rest-request.php

		/*
		 * Add to the POST parameters stored internally. If a user has already
		 * set these manually (via `set_body_params`), don't override them.

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.