Forums
Home / Plugin: Disable REST API / A way to change the error message
(@sadesades)
3 years ago
Thank you for this great plugin, is there any way we can change the error message or a webhook we can use to change
{“code”:”rest_cannot_access”,”message”:”DRA: Only authenticated users can access the REST API.”,”data”:{“status”:401}}
Would like to be able to show a different message than “Only authenticated users can access the REST API”
Thanks
(@dmchale)
Hi @sadesades
Good suggestion! I’ll see what I can do to add a filter in the next release 🙂
Awesome thanks looking forward for this filter
Hi again @sadesades
Just wanted to let you know I’ve added a new dra_error_message filter to the upcoming v1.8 plugin version, which I *hope* to have out in the repository later this week.
dra_error_message
Cheers!
2 years, 11 months ago
Awesome looking forward for it thank you