BP_Groups_Widget::__construct()
Working as a group, we get things done better.
Description
Source
File: bp-groups/classes/class-bp-groups-widget.php
public function __construct() {
$widget_ops = array(
'description' => __( 'A dynamic list of recently active, popular, newest, or alphabetical groups', 'buddyboss' ),
'classname' => 'widget_bp_groups_widget buddypress widget',
'customize_selective_refresh' => true,
);
parent::__construct( false, __( '(BB) Social Groups', 'buddyboss' ), $widget_ops );
if ( is_customize_preview() || is_active_widget( false, false, $this->id_base ) ) {
add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
}
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.0.3 | Introduced. |
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.