Hooks::init()
Add actions once integration is ready
Description
Source
File: bp-integrations/learndash/learndash/Hooks.php
public function init() { // add some helpful missing hooks add_action('ld_group_postdata_updated', [$this, 'groupUpdated']); add_action('before_delete_post', [$this, 'groupDeleting']); // backward compet, we check the meta instead of using hook (hook not consistant) add_action('update_user_meta', [$this, 'checkLearndashGroupUpdateMeta'], 10, 4); add_action('added_user_meta', [$this, 'checkLearndashGroupUpdateMeta'], 10, 4); add_action('deleted_user_meta', [$this, 'checkLearndashGroupDeleteMeta'], 10, 4); add_action('update_post_meta', [$this, 'checkLearndashCourseUpdateMeta'], 10, 4); add_action('added_post_meta', [$this, 'checkLearndashCourseUpdateMeta'], 10, 4); add_action('deleted_post_meta', [$this, 'checkLearndashCourseDeleteMeta'], 10, 4); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.