Edwiser Bridge Action Hooks

Action HooksDescription 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. $wp_course_id: Id of course created on WordPress.
$sync_options: Synchronization option selected by website admin.
$course_data
eb_course_updated_wp Use this hook to execute custom code after updating courses on WordPress. $existing_wp_course_id: Id of course updated on WordPress.
$sync_options: Synchronization option selected by website admin.
$course_data  
eb_user_synchronization_complete_single Use this hook to execute a custom action after each user’s synchronization completion. $user_id: User Id for whom synchronization has been completed.
$sync_options: Synchronization option selected by website admin.
eb_user_synchronization_complete Use this hook to execute custom code after user data synchronization has been completed. $all_users: Array of users for whom synchronization has been performed.
$sync_options: Synchronization option selected by website admin.
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. $user_id: Id of user who has been enrolled to a course.
$success: Check if enrollment was successfully completed.
$courses:Courses to which a user has been enrolled.
eb_order_created Use this hook to execute custom code after a new order has been created to save custom data in order meta. $order_id
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.
Was this page helpful?