Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

register_rest_route()

3 tags 1 category

register_rest_route() — Registers a REST API route. Note: Do not use before the {

Inputs: $route_namespace (string): The first URL segment after core prefix. Should be unique to your package/plugin. $route (string): The base URL for route you are adding. $args (array): Optional. Either an array of options for the endpoint, or an array of arrays for multiple methods. Default empty array. $override (bool): Optional. If the route already exists, should we override it? True overrides, false merges (with newer overriding if duplicate keys exist). Default false.

Returns bool: True on success, false on error.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…