ti-no Posted May 6, 2019 Share Posted May 6, 2019 Hy, i’m looking for a way to execute some php code every time i add, edit or delete a page with a specified template via the admin menu. Different action cause different code and also different templates should use different code. I hope u can understand what i wanna do ? thank u for your ideas! greetings tino Link to comment Share on other sites More sharing options...
Zeka Posted May 6, 2019 Share Posted May 6, 2019 Hi @ti-no For that, you can use hooks. First, take a look at the documentation https://processwire.com/docs/modules/hooks/ There is a list of core modules and classes and their hookable methods http://somatonic.github.io/Captain-Hook/ 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now