# Woocommerce Integration Hooks & Filters

| **Hook**                                       | **Description**                                                                                                   | **Parameters**                                                                                                                                                                                                                                                  |
| ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **bridge\_woo\_course\_product\_created**      | Use this hook to execute custom code when a new product is created during synchronization from the settings page. | <p>$wp\_product\_id: WooCommerce Product Id generated for a course<br>$wp\_course\_id : Id of Moodle™ course created on WordPress<br>$course\_data: Course data coming from Moodle API<br>$sync\_options:  Synchronization option selected by website admin</p> |
| **bridge\_woo\_course\_product\_updated**      | Use this hook to execute custom code when a new product is updated during synchronization from the settings page. | <p>$wp\_course\_id : Id of Moodle course created on WordPress<br>$course\_data: Course data coming from Moodle API<br>$sync\_options:  Synchronization option selected by website admin</p>                                                                     |
| **bridge\_woo\_email\_allowed\_order\_status** | Use this hook to include information of courses associated with a product selectively in order status emails.     | array: This contains order status such as, ‘wc-processing’,’wc-completed’,’wc-on-hold’                                                                                                                                                                          |
