Jump to content
  • 0

localAPI and hook


Are the hooks running if I make a local api call? I have  made a PreModuleCreate hook and I want it to run when I am call the ModuleCreate api from another server.
But seems like to me it is not working. I mean none of the hooks run when I make an api call. Is this true or I do wrong something?

Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I wouldn't say I'm a complete expert, but I'm fairly sure that hooks run on pages or user actions rather than on API calls.  The idea being that on an API call, you can write your own code to add the functionality you need.  It's worth checking the specific hook documentation, of course.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.


Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated