How to make a plugin api route have permission?

admin2025-06-02  0

Hi I have a plugin for bookings installed. I would like to make WP headless so I'm using api calls of course, and my plugin has api routes to call.

However, they are protected. :( How do I go about unprotecting them?

Route example is http://localhost:8888/wp-admin/admin-ajax.php?action=wpamelia_api&call=/services

When called in postman I get a 403 error.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748833971a314107.html

最新回复(0)