Hooks and filters
AcquisitionSuite exposes actions and filters so developers can extend it. Hook them from your theme’s functions.php or a small custom plugin. Arguments below are the ones passed to your callback, in order.
Lite: actions
| Hook |
Arguments |
Fires |
acquis_after_file_upload |
$result |
After a file is uploaded and gated |
acquis_after_email_sent |
$lead_id, $email, $sent, $context |
After each email send attempt; $sent is the result |
acquis_before_lead_deleted |
$lead_id |
Just before a lead is deleted |
acquis_integrations_dispatched |
varies |
After a lead is dispatched to your email integrations |
Lite: filters
| Hook |
Arguments |
Use it to |
acquis_email_headers |
$headers, $lead_id, $context |
Add or change email headers (Reply-To, CC and so on) |
acquis_form_display_styles |
$styles |
Change the allowed display styles (default embedded, popup); Pro adds floating |
acquis_system_status_tables |
$tables |
Add your own tables to the System Status check |
Pro: actions
| Hook |
Arguments |
Fires |
acquis_lead_scored |
$lead_id, $total, $breakdown |
When a lead’s score is calculated |
acquis_lead_event_scored |
$lead_id, $event_type, $points, $new_total |
When an event rule adds points |
acquis_tag_added |
$lead_id, $tag |
When a tag is applied to a lead |
acquis_lead_pipeline_moved |
$lead_id, $stage_id, $previous_stage_id |
When a lead changes pipeline stage |
acquis_email_opened / acquis_email_clicked |
$lead_id, $log_id |
When a tracked email is opened or a link clicked |
acquis_sequence_step_sent |
$lead_id, $sequence_id, $step_id, $sent |
After a sequence step is sent |
acquis_pay_order_fulfilled |
$order, $download_url |
When a paid order is confirmed and fulfilled |
acquis_product_event_recorded |
$event_id, $event_name, $lead_id, $product_id, $meta |
When a custom product event is recorded |
Pro: filters
| Hook |
Arguments |
Use it to |
acquis_automation_action |
$result, $type, $action, $lead_id, $context |
Handle your own automation action type |
acquis_pay_register_gateways |
$gateways |
Register an additional payment gateway. See Custom payment gateways |
acquis_upgrade_url |
$url |
Change where “Upgrade” links point |
Example
add_action( 'acquis_lead_scored', function ( $lead_id, $total, $breakdown ) {
if ( $total >= 100 ) {
// Tell your sales team about a sales-ready lead.
}
}, 10, 3 );
Notes
- Remember to pass the correct number of accepted arguments as the fourth parameter of
add_action.
- Hooks may gain arguments in future releases; accept extras rather than assuming an exact count.
- Prefix your own functions and test on a staging site first.