Product_Inventory_Update_Webhook::trigger_action( array $request )

Summary

Fires when a product inventory webhooks has been received from the BigCommerce store.


Parameters

$request

(array) (Required)


Return

(void)


Source

File: src/BigCommerce/Webhooks/Product_Inventory_Update_Webhook.php

	public function trigger_action( $request ) {
		$product_id = intval($request[ 'data' ][ 'id' ]);
		/**
		 * Fires when a product inventory webhooks has been received from the BigCommerce store.
		 *
		 * @param int $product_id BigCommerce product ID.
		 */
		do_action( 'bigcommerce/webhooks/product_inventory_updated',   ['product_id' => $product_id]  );
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.