BP_Core_Friends_Widget::__construct()
Class constructor.
Description Description
Source Source
File: bp-friends/classes/class-bp-core-friends-widget.php
function __construct() { $widget_ops = array( 'description' => __( 'A dynamic list of recently active, popular, and newest Friends of the displayed member. Widget is only shown when viewing a member profile.', 'buddypress' ), 'classname' => 'widget_bp_core_friends_widget buddypress widget', 'customize_selective_refresh' => true, ); parent::__construct( false, $name = _x( '(BuddyPress) Friends', 'widget name', 'buddypress' ), $widget_ops ); if ( is_customize_preview() || is_active_widget( false, false, $this->id_base ) ) { add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); } }
Changelog Changelog
Version | Description |
---|---|
1.9.0 | Introduced. |