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

$action

(string) (Required) The order action.

$order_id

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

$subscriber_id

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

$bridge

(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

Changelog
VersionDescription
1.3.0Introduced.

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