BP_Core_Members_Widget::__construct()
Constructor method.
Description
Source
File: bp-members/classes/class-bp-core-members-widget.php
public function __construct() { // Setup widget name & description. $name = __( '(BB) Members', 'buddyboss' ); $description = __( 'A dynamic list of recently active, popular, and newest members', 'buddyboss' ); // Call WP_Widget constructor. parent::__construct( false, $name, array( 'description' => $description, 'classname' => 'widget_bp_core_members_widget buddypress widget', 'customize_selective_refresh' => true, ) ); 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.5.0 | 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.