Noptin_Automation_Rules::__construct()

Constructor.


Return Return

(string)


Top ↑

Source Source

File: includes/automation-rules/class-noptin-automation-rules.php

    public function __construct() {

        // Register core actions.
        $this->add_action( new Noptin_Custom_Field_Action() );
        $this->add_action( new Noptin_Email_Action() );
        $this->add_action( new Noptin_Unsubscribe_Action() );

        // Register core triggers.
        $this->add_trigger( new Noptin_New_Subscriber_Trigger() );
        $this->add_trigger( new Noptin_Open_Email_Trigger() );
        $this->add_trigger( new Noptin_Link_Click_Trigger() );
        $this->add_trigger( new Noptin_Unsubscribe_Trigger() );

        // Handle admin rule CRUDE requests.
        add_action( 'noptin_create_automation_rule',  array( $this, 'admin_create_automation_rule' ) );
        add_action( 'noptin_delete_automation_rule',  array( $this, 'admin_delete_automation_rule' ) );
        do_action( 'noptin_automation_rules_load', $this );
    }


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.2.8Introduced.

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation