Noptin_Abstract_Ecommerce_Integration::fire_order_hook( string $action, int $order_id )

Fires a specific hook based on an order status.


Parameters Parameters

$action

(string) (Required) The order action.

$order_id

(int) (Required) The order id.


Top ↑

Source Source

File: includes/integrations/class-noptin-abstract-ecommerce-integration.php

	public function fire_order_hook( $action, $order_id ) {

		$subscriber_id = $this->get_order_subscriber( $order_id );

		// Only fired when there is actually a subcsriber.
		if ( $subscriber_id ) {
			do_action( "noptin_integration_order", $action, $order_id, $subscriber_id, $this );
			do_action( "noptin_integration_order_$action", $order_id, $subscriber_id, $this );
			do_action( "noptin_ecommerce_integration_order_$action", $order_id, $subscriber_id, $this );
			do_action( "noptin_ecommerce_integration_order", $action, $order_id, $subscriber_id, $this );
			do_action( "noptin_{$this->slug}_integration_order_$action", $order_id, $subscriber_id, $this );
			do_action( "noptin_{$this->slug}_integration_order", $action, $order_id, $subscriber_id, $this );
		}

	}


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