Jump to content

Testing PreAutomationTask hook


yomyyo

Recommended Posts

Hello, I'm trying to do testing with the PreAutomationTask/PostAutomationTask hook. What can I do to run the hook to see if what my function does is correct. I would also like to find out what values $vars['task'] holds so I can run my code when a specific task runs. Is there a way I can view what that variable holds. I tried doing die(print_r($vars['task'])) but it looks like the page doesn't die and it's something else that stops.

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
Reply to this topic...

×   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