aam_rest_register_route

Purpose

Register a premium route through the core REST router. Premium.

Callback

Example

add_action('aam_rest_register_route', function ($route, $route_args, $required_caps) {
    error_log('AAM registering premium route: ' . $route);
}, 10, 3);

Observes a premium route as it is registered. The route arguments and required capabilities are available to the callback.

See the complete hook list.