1. Email Automation Trigger: Specific date
  2. Email Automation Trigger: Anniversary
  3. Email Automation Trigger: Field updated
  4. Email Automation Trigger: Form Conversion
  5. Email Automation Trigger: Click a link
  6. Email Automation Trigger: Visits a page
  7. Email Automation Trigger: Custom Hook
  8. Email Automation Trigger: Tag added
  9. Email Automation Trigger: Subscriber added to a list
  10. Email Automation Trigger: Subscriber removed to a list 
  11. Email Automation Trigger: Tag removed

Run a workflow with custom PHP code. This is useful if you like to extend your custom applications with action.

Choose “Custom Hook” as your trigger to define the name of the hook, which you can use to start this workflow.

Using custom hooks requires writing some PHP which can be placed in a dedicated plugin or your themes function.php.

Read more on how to add custom code to your website.

Trigger for a single subscriber

To trigger a workflow for a specific subscriber, you have to define the $subscriber_id as second argument.

mailster_trigger( 'my_custom_hook_c47264', $subscriber_id );

Trigger for multiple subscribers

You can also pass multiple subscriber ids as an array.

mailster_trigger( 'my_custom_hook_c47264', array( $subscriber_id1, $subscriber_id2 ) );

Trigger for all subscribers

If the second argument is missing, Mailster will run the workflow for all your subscribers.

mailster_trigger( 'my_custom_hook_c47264' );

Learn more about Triggers here.

Tagged: