Skip to:
Content

BuddyPress.org

#8933 closed enhancement (fixed)

Including third party components to active components

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 12.0.0 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch
Cc:

Description

Working on documenting the BP_Component class, it took me a while to understand & remember I needed my custom component to set buddypress()->active_components['custom'] = 1 to be part of the active components. This should be handled by BuddyPress itself, not Plugins/Add-ons.

Change History (2)

This ticket was mentioned in PR #126 on buddypress/buddypress by @imath.


14 months ago
#1

  • Keywords has-patch added; needs-patch removed

It shouldn't be something Plugins/Add-ons need to set.

Trac ticket: https://buddypress.trac.wordpress.org/ticket/8933

#2 @imath
14 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 13513:

List all active components in buddypress()->active_components

So far this global was only retrieving the list of built-in components that were activated from the BP Components settings screen of the WordPress Dashboard. Third party plugins/add-ons to be in this list needed to add their own component ID to it using this kind of code buddypress()->active_components['component_id'] = 1.

BuddyPress is now making sure any active components are listed into the buddypress()->active_components.

Fixes #8933
Closes https://github.com/buddypress/buddypress/pull/126

Note: See TracTickets for help on using tickets.