Cron
The following hooks are provided for Cron Jobs related events.
AfterCronJob
Runs each time that the system calls the system cron job. This occurs after all scheduled tasks finish.
Parameters
No input parameters for this hook point |
Response
No response supported
Example Code
<?php
add_hook('AfterCronJob', 1, function($vars) {
// Perform hook code here...
});
DailyCronJob
uns at the very end of the daily automation cron execution..
Parameters
No input parameters for this hook point |
Response
No response supported
Example Code
<?php
add_hook('DailyCronJob', 1, function($vars) {
// Perform hook code here...
});
DailyCronJobPreEmail
Runs after tasks have completed but before email report is sent.
Parameters
No input parameters for this hook point |
Response
No response supported
Example Code
<?php
add_hook('DailyCronJobPreEmail', 1, function($vars) {
// Perform hook code here...
});
PopEmailCollectionCronCompleted
Executes when the POP email collection cron completes.
Parameters
Variable | Type | Notes |
---|---|---|
errors | Array | An array of errors if an error occurred while attempting to connect to one or more mailboxes |
Response
No response supported
Example Code
<?php
add_hook('PopEmailCollectionCronCompleted', 1, function($vars) {
// Perform hook code here...
});
PostAutomationTask
Executes after an automation task occurs.
Parameters
Variable | Type | Notes |
---|---|---|
task | Array | Task Related Information in array set with completion status |
Response
No response supported
Example Code
<?php
add_hook('PostAutomationTask', 1, function($vars) {
// Perform hook code here...
});
PreAutomationTask
Executes before an automation task occurs.
Parameters
Variable | Type | Notes |
---|---|---|
task | Array | Task Related Information in array set |
Response
No response supported
Example Code
<?php
add_hook('PreAutomationTask', 1, function($vars) {
// Perform hook code here...
});
PreCronJob
Runs before the daily automation cron execution.
Parameters
Variable | Type | Notes |
---|---|---|
No input parameters for this hook point. |
Response
No response supported
Example Code
<?php
add_hook('PreCronJob', 1, function($vars) {
// Perform hook code here...
});