WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about rest_url

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/rest-api.php apply_filters 505 /**
* Filters the REST URL.
*
* Use this filter to adjust the url returned by the get_rest_url() function.
*
* @since 4.4.0
*
* @param string $url REST URL.
* @param string $path REST route.
* @param int|null $blog_id Blog ID.
* @param string $scheme Sanitization scheme.
*/

Hook Parameters

Parameter Type Name Description
string $prefix URL prefix. Default 'wp-json'.