rest_get_url_prefix

Advertisement

Summery Summery

Retrieves the URL prefix for any API resource.

Syntax Syntax

rest_get_url_prefix()

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

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.