apply_filters( 'tribe_register_rest_route_args', array $args, string $namespace, string $route, bool $override )

Allow plugins to customize REST API arguments and callbacks.

Parameters #


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


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

Top ↑

Source #

File: src/functions/utils.php

Top ↑

Changelog #

Version Description
4.9.12 Introduced.