Skip to:
Content

BuddyPress.org

Changeset 10917


Ignore:
Timestamp:
06/29/2016 08:18:01 PM (10 years ago)
Author:
r-a-y
Message:

Groups: Register group types on 'init'.

Previously, it was not possible to register group types in the current
theme's functions.php file.

This is due to our 'bp_groups_register_group_types' hook running on
'plugins_loaded'.

Commit moves the register group types hook to 'bp_init' at priority 1
so it runs just before bp_core_set_uri_globals(), which runs at priority
2.

Fixes #7138 (trunk)

File:
1 edited

Legend:

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

    r10769 r10917  
    2828        do_action( 'bp_groups_register_group_types' );
    2929}
    30 add_action( 'bp_loaded', 'bp_groups_register_group_types', 8 );
     30add_action( 'bp_init', 'bp_groups_register_group_types', 1 );
    3131
    3232/**
Note: See TracChangeset for help on using the changeset viewer.