Skip to:
Content

BuddyPress.org

Changeset 10769


Ignore:
Timestamp:
05/15/2016 02:45:47 AM (9 years ago)
Author:
boonebgorges
Message:

Add bp_groups_register_group_types action.

Paralleling the bp_register_member_types action, this hook provides a
convenient place for plugins to register their group types safely.

See #6784.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-actions.php

    r10654 r10769  
    1414// Exit if accessed directly.
    1515defined( 'ABSPATH' ) || exit;
     16
     17/**
     18 * Fire the 'bp_groups_register_group_types' action.
     19 *
     20 * @since 2.6.0
     21 */
     22function bp_groups_register_group_types() {
     23    /**
     24     * Fires when it's appropriate to register group types.
     25     *
     26     * @since 2.6.0
     27     */
     28    do_action( 'bp_groups_register_group_types' );
     29}
     30add_action( 'bp_loaded', 'bp_groups_register_group_types', 8 );
    1631
    1732/**
Note: See TracChangeset for help on using the changeset viewer.