• Resolved wenkunst

    (@wenkunst)


    I have read the suggestion about the trigger ‘ig_es_workflow_triggers’ to get users subscribed via third parties plugins.
    I’m trying to use this trigger but with no luck, can you give some hints how to use this trigger? I’ve tried this but I don’t see new triggers in the workflow:

    add_filter('ig_es_workflow_triggers', 'wenkunst_add_subscriber');
    function wenkunst_add_subscriber($includes) {
        $includes['wenkunst_add_user'] = 'WENKUNST_Trigger_new_user';
        
        return $includes;
    }

    Can I find an example how to add a user to a certain list?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor kishanranawat

    (@kishanranawat)

    Hi @wenkunst,

    Thanks for contacting us.

    You can register custom workflow triggers using the ig_es_workflow_triggers WordPress filter. In the callback function for this filter, you will need to add your trigger details(unique trigger name, class handling the trigger event etc) into the existing trigger list array variable. Also, the class handling the trigger event should extend ES_Workflow_Trigger trigger as it is the base class for triggers.

    You can refer to this sample plugin’s code on how to create custom workflow triggers for the Email Subscribers plugin. After activating the above plugin, you should be able to see a sample workflow trigger option in the triggers’ dropdown like here.

    Also, you can add actions like Adding to a list, sending email, deleting or updating contact, etc for the custom trigger as well just like for other default triggers.

    Hope this helps you. Let us know if you have any further queries.

    Thank you.

    Thread Starter wenkunst

    (@wenkunst)

    Wonderful, this is exactly what I was looking for!
    Thanks very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.