Noptin_WooCommerce_New_Order_Trigger::init_trigger( string $action, int $order_id, int $subscriber_id, Noptin_WooCommerce $bridge )

Calls the trigger when an order state changes.

Parameters Parameters


(string) (Required) The order action.


(int) (Required) The order being acted on.


(int) (Required) The subscriber for the order.


(Noptin_WooCommerce) (Required) The Noptin and WC integration bridge.

Top ↑

Source Source

File: includes/automation-rules/triggers/class-noptin-woocommerce-new-order-trigger.php

    public function init_trigger( $action, $order_id, $subscriber_id, $bridge ) {
        $details           = $bridge->get_order_details( $order_id );
        $details['action'] = $action;
        $this->trigger( $subscriber_id, $details );

Top ↑

Changelog Changelog


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