apply_filters( "tribe_register_rest_route_args_{$namespace}", array $args, string $namespace, string $route, bool $override )

Allow plugins to customize REST API arguments and callbacks.


Parameters #

$args

(array) Either an array of options for the endpoint, or an array of arrays for multiple methods. Default empty array.

$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.

$override

(bool) If the route already exists, should we override it? True overrides, false merges (with newer overriding if duplicate keys exist). Default false.


Top ↑

Source #

File: src/functions/utils.php


Top ↑

Changelog #

Changelog
Version Description
4.9.12 Introduced.