[4.x] Run hooks for Globals Publish Form#7618
[4.x] Run hooks for Globals Publish Form#7618jasonvarga merged 5 commits intostatamic:4.xfrom duncanmcclean:feature/run-hooks-for-global-set-publish-form
Conversation
PR Summary
|
|
Any chance of that being merged anytime soon? Would come in really handy for something we're currently working on. Would be good to know if we should better find a different solution or if we can use this. |
jasonvarga
left a comment
There was a problem hiding this comment.
Very nice, sorry for the delay. The only thing you missed was passing the response along.
This pull request adds two new hooks that can be listened to on the Globals Publish Form:
global-set.saving&global-set.saved.This PR closes statamic/ideas#868
Testing
You can test by adding the following to your site's Control Panel JS file: