Summery Summery
Retrieves the URL prefix for any API resource.
Syntax Syntax
Return Return
(string) Prefix.
Source Source
File: wp-includes/rest-api.php
if ( empty( $GLOBALS['wp']->query_vars['rest_route'] ) ) { return; } /** * Whether this is a REST Request. * * @since 4.4.0 * @var bool */
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |