wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_url_prefix › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'rest_url_prefix', 'wp-json' )
Parameters:
  • (string) $prefix URL prefix. Default 'wp-json'.
    Required: Yes
Defined at:
Codex:

Filters the REST URL prefix.





Source

return apply_filters( 'rest_url_prefix', 'wp-json' );