Skip to:
Content

BuddyPress.org

Changeset 5836


Ignore:
Timestamp:
02/24/2012 09:34:47 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Add 'bbp_widgets_init' piggy-back action to WordPress's 'widgets_init' action.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-hooks.php

    r5816 r5836  
    4242add_action( 'admin_bar_menu',          'bp_setup_admin_bar',        20    ); // After WP core
    4343add_action( 'template_redirect',       'bp_template_redirect',      10    );
     44add_action( 'widgets_init',            'bp_widgets_init',           10    );
    4445add_filter( 'template_include',        'bp_template_include',       10    );
    4546add_filter( 'map_meta_cap',            'bp_map_meta_caps',          10, 4 );
     
    191192}
    192193
     194/**
     195 * Initialize widgets
     196 */
     197function bp_widgets_init() {
     198    do_action ( 'bp_widgets_init' );
     199}
     200
     201
    193202/** Admin *********************************************************************/
    194203
Note: See TracChangeset for help on using the changeset viewer.