Support » Fixing WordPress » Disabling Certain Default Rest Endpoints

  • jfantasybooks

    (@jfantasybooks)


    Hi. is there a way so specifically disable rest endpoints when a user is not logged in?

    I use the API, but I have reason to want certain endpoints to be disabled for certain cases.

    I’ve got an is_rest() function. But was only able to make it determine if this is a REST API request and not if it is a specific REST API request.

    I’d appreciate any info. Thanks.

    (PLEASE DON’T COMMENT ON WHY NOT TO DO THIS.)

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.