bp_blogs_register_widgets()
Register the widgets for the Blogs component.
Description
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' ); } ); } }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.