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

Allow plugins to customize REST API arguments and callbacks.

Parameters #


(string) The first URL segment after core prefix. Should be unique to your package/plugin.


(string) The base URL for route you are adding.


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


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

Top ↑

Source #

File: src/functions/utils.php

Top ↑

Changelog #

Version Description
4.9.12 Introduced.