Jump to content
  • 0

localAPI and hook


GaborDeli

Question

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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