• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • This describes exactly the issue I have been experiencing. Looking forward to a reply from someone.

    Thread Starter marijabog

    (@marijabog)

    Exactly, also the hooks on theme install before/after would be awesome.

    But also some other approaches would be welcome because this is for me a burning problem. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Missing webhooks for delete/update theme (before and after theme delete/update)’ is closed to new replies.