Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/02/2021 04:26:52 PM (4 years ago)
Author:
imath
Message:

Improve the Group Extension API extensibility

  • Use a new global to store the registered Group extensions of the Groups component.
  • Edit the behavior of the bp_register_group_extension() function so that it only registers custom group extensions into the new global.
  • Introduce a new function bp_init_group_extensions() to init the registered Group extensions.

These improvements will make it possible for the BP Rewrites feature as a plugin to allow slug customization of the registered Group extensions.

Props boonebgorges

Fixes #8558

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-groups-component.php

    r13093 r13101  
    9494     */
    9595    public $current_directory_type = '';
     96
     97    /**
     98     * List of registered Group extensions.
     99     *
     100     * @see bp_register_group_extension()
     101     *
     102     * @since 10.0.0
     103     * @var array
     104     */
     105    public $group_extensions = array();
    96106
    97107    /**
Note: See TracChangeset for help on using the changeset viewer.