Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/01/2016 05:14:29 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Roles: Introduce bbp_roles_init subaction, and use this for future dynamic roles initialization.

See: #2452;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/sub-actions.php

    r6105 r6106  
    134134function bbp_init() {
    135135    do_action( 'bbp_init' );
     136}
     137
     138/**
     139 * Initialize roles
     140 *
     141 * @since 2.6.0 bbPress (r6106)
     142 *
     143 * @uses do_action() Calls 'bbp_roles_init'
     144 *
     145 * @param WP_Roles $wp_roles The array of WP_Role objects that was initialized
     146 */
     147function bbp_roles_init( $wp_roles ) {
     148    do_action( 'bbp_roles_init', $wp_roles );
    136149}
    137150
Note: See TracChangeset for help on using the changeset viewer.