Missing webhooks for delete/update theme (before and after theme delete/update)
-
Is it possible that there are no webhooks for delete/upgrade theme in wp? And if so, why? π
I have a task to disable delete/upgrade of couple of specific themes and to enable delete/update for all the rests, so I cannot fix it globally by using for example user capabilities.
My first idea for solving this task was to make a plugin that would add a webhook BEFORE delete_theme and then check inside the webhook if the customer has ability to delete that theme. But unfortunately, I couldn’t find it.Is there any other idea or suggestion for solving this problem? Thanks in advice.
The topic ‘Missing webhooks for delete/update theme (before and after theme delete/update)’ is closed to new replies.