> For the complete documentation index, see [llms.txt](https://remui-docs.edwiser.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://remui-docs.edwiser.org/edwiser-bridge/edwiser-bridge-action-hooks.md).

# Edwiser Bridge Action Hooks

| **Action Hooks**                                  | **Description**                                                                                              | **Parameter**                                                                                                                                                                       |
| ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **eb\_update\_option**                            | Use this action hook to save settings manually on the settings page.                                         | $field: Value of field which you want to handle or save at a custom location.                                                                                                       |
| **eb\_course\_synchronization\_complete**         | Use this action hook to execute a custom action after the completion of course synchronization.              | $courses\_created: Id of newly created courses on WordPress. $courses\_updated: Id of previously updated courses on WordPress.                                                      |
| **eb\_course\_created\_wp**                       | Use this action hook to execute custom code after course creation on WordPress.                              | <p>$wp\_course\_id: Id of course created on WordPress.<br>$sync\_options: Synchronization option selected by website admin.<br>$course\_data</p>                                    |
| **eb\_course\_updated\_wp**                       | Use this hook to execute custom code after updating courses on WordPress.                                    | <p>$existing\_wp\_course\_id: Id of course updated on WordPress.<br>$sync\_options: Synchronization option selected by website admin.<br>$course\_data  </p>                        |
| **eb\_user\_synchronization\_complete\_single**   | Use this hook to execute a custom action after each user’s synchronization completion.                       | <p>$user\_id: User Id for whom synchronization has been completed.<br>$sync\_options: Synchronization option selected by website admin.</p>                                         |
| **eb\_user\_synchronization\_complete**           | Use this hook to execute custom code after user data synchronization has been completed.                     | <p>$all\_users: Array of users for whom synchronization has been performed.<br>$sync\_options: Synchronization option selected by website admin.</p>                                |
| **eb\_created\_user**                             | Use this to execute custom code after registering a WordPress account & linking it with the Moodle™ account. | $user\_args: Details entered by user while registration. ( Includes the random password generated for the user)                                                                     |
| **eb\_linked\_to\_existing\_wordpress\_user**     | Use this hook to execute custom code after an existing WordPress account is linked with a Moodle account.    | $user\_args: User details used to create an account on moodle.                                                                                                                      |
| **eb\_user\_courses\_updated**                    | Use this hook to execute custom code after a user enrolls to a course.                                       | <p>$user\_id: Id of user who has been enrolled to a course.<br>$success: Check if enrollment was successfully completed.<br>$courses:Courses to which a user has been enrolled.</p> |
| **eb\_order\_created**                            | Use this hook to execute custom code after a new order has been created to save custom data in order meta.   | <p>$order\_id<br></p>                                                                                                                                                               |
| **eb\_order\_status\_(completed/pending/failed)** | Use this dynamic hook to execute custom code based on order status.                                          | $order\_id                                                                                                                                                                          |
| **eb\_register\_taxonomy**                        | Use this hook to execute a custom function before registration of the plugin’s default taxonomy.             | –                                                                                                                                                                                   |
| **eb\_after\_register\_taxonomy**                 | Use this hook to execute a custom function after registration of the plugin’s default taxonomy.              | –                                                                                                                                                                                   |
| **eb\_register\_post\_type**                      | Use this hook to execute a custom function before registration of the plugin’s default post types.           | –                                                                                                                                                                                   |
| **eb\_after\_register\_post\_type**               | Use this hook to execute a custom function after registration of the plugin’s default post types.            | –                                                                                                                                                                                   |
| **eb\_before\_course\_archive**                   | Use this hook to add content before the course grid on course archive page.                                  | –                                                                                                                                                                                   |
| **eb\_after\_course\_archive**                    | Use this hook to add content after the course grid on the course archive page.                               | –                                                                                                                                                                                   |
| **eb\_before\_single\_course**                    | Use this hook to add content before course data on a single course page.                                     | –                                                                                                                                                                                   |
| **eb\_after\_single\_course**                     | Use this hook to add content after course data on a single course page.                                      | –                                                                                                                                                                                   |
| **eb\_email\_header**                             | Use this hook to add custom header to emails being sent by the plugin.                                       | $header                                                                                                                                                                             |
| **eb\_email\_footer**                             | Use this hook to add custom footer to emails being sent by the plugin.                                       | –                                                                                                                                                                                   |
