Hooks::init()
Add actions once integration is ready
Description
Source
File: bp-integrations/learndash/buddypress/Hooks.php
public function init() {
// add some helpful missing hooks
add_action( 'groups_create_group', [ $this, 'groupCreated' ] );
add_action( 'groups_update_group', [ $this, 'groupUpdated' ] );
add_action( 'groups_before_delete_group', [ $this, 'groupDeleting' ] );
add_action( 'groups_delete_group', [ $this, 'groupDeleted' ] );
// admin
add_action( 'bp_group_admin_edit_after', [ $this, 'groupUpdated' ] );
add_action( 'groups_member_after_save', [ $this, 'groupMemberAdded' ] );
add_action( 'groups_member_after_remove', [ $this, 'groupMemberRemoved' ] );
}
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.