Jump to content
  • 0

Plugin Even When Creating Invoice From Cron


AllToolKits.com

Question

Hi,

 

Using the below link, the cron is runing at a regular interval.

 

 http://mysampledomain.com/index.php/cron/?cron_key=txg6s9c0

 

It will create invoice for a domain. I would like to call a function in  a plugin when the invoice is generating from the cron.

 

Is there any Event for that? That means how the plugin will know when ever a invoice is created from  cron?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hi,

 

Using the below link, the cron is runing at a regular interval.

 

 http://mysampledomain.com/index.php/cron/?cron_key=txg6s9c0

 

It will create invoice for a domain. I would like to call a function in  a plugin when the invoice is generating from the cron.

 

Is there any Event for that? That means how the plugin will know when ever a invoice is created from  cron?

 

Invoices.add is your friend 

 

http://docs.blesta.com/display/dev/Event+Handlers

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.

Loading...
×
×
  • Create New...