bp_blogs_register_widgets()
Register the widgets for the Blogs component.
Source Source
File: bp-blogs/bp-blogs-widgets.php
function bp_blogs_register_widgets() { global $wpdb; if ( bp_is_active( 'activity' ) && bp_is_root_blog( $wpdb->blogid ) ) { add_action( 'widgets_init', function() { register_widget( 'BP_Blogs_Recent_Posts_Widget' ); } ); } }
Expand full source code Collapse full source code View on Trac