Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BBP_Forums_Group_Extension::setup_actions()
Setup the group forums class actions
Description Description
Source Source
File: includes/extend/buddypress/groups.php
private function setup_actions() {
// Possibly redirect
add_action( 'bbp_template_redirect', array( $this, 'redirect_canonical' ) );
// Remove group forum cap map when view is done
add_action( 'bbp_after_group_forum_display', array( $this, 'remove_group_forum_meta_cap_map' ) );
// Validate group IDs when editing topics & replies
add_action( 'bbp_edit_topic_pre_extras', array( $this, 'validate_topic_forum_id' ) );
add_action( 'bbp_edit_reply_pre_extras', array( $this, 'validate_reply_to_id' ) );
// Check if group-forum status should be changed
add_action( 'groups_group_after_save', array( $this, 'update_group_forum_visibility' ) );
// bbPress needs to listen to BuddyPress group deletion
add_action( 'groups_before_delete_group', array( $this, 'disconnect_forum_from_group' ) );
// Adds a bbPress meta-box to the new BuddyPress Group Admin UI
add_action( 'bp_groups_admin_meta_boxes', array( $this, 'group_admin_ui_edit_screen' ) );
// Saves the bbPress options if they come from the BuddyPress Group Admin UI
add_action( 'bp_group_admin_edit_after', array( $this, 'edit_screen_save' ) );
// Adds a hidden input value to the "Group Settings" page
add_action( 'bp_before_group_settings_admin', array( $this, 'group_settings_hidden_field' ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |