Jump to content

Add hook only on admin / client


Recommended Posts

Hi all.

 

I'm hooking "InvoiceCreationPreEmail" event to add some info to the just created invoice before sending to the client. But I do want this hook when I manually create an invoice from admin.

Inside admin, I can't use "InvoiceCreationPreEmail" on manual invoices as it's not called, so I must use "InvoiceCreated"

 

As both calls will be in the same hook, do you have any idea on how to get a hook executed only in admin or only in client zone?

 

Thanks!

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