Skip to content

Custom routes permission_callback is ignored once the route is cached  #29

Open
@TouficHSpin

Description

@TouficHSpin

Hi,

Using register_rest_route, I have set the following permission_callback on my custom route : 'permission_callback' => [$this, 'checkAPIAccess'.

The first time I call my route, the permission_callback is executed. Once the route is cached, the response is sent without checking my permission_callback function.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions