BP_Core_Friends_Widget::__construct()
Class constructor.
Description
Source
File: bp-friends/classes/class-bp-core-friends-widget.php
24 25 26 27 28 29 30 31 32 33 34 35 | function __construct() { $widget_ops = array ( 'description' => __( 'A dynamic list of recently active, popular, and newest Connections of the displayed member. Widget is only shown when viewing a member profile.' , 'buddyboss' ), 'classname' => 'widget_bp_core_friends_widget buddypress widget' , 'customize_selective_refresh' => true, ); parent::__construct( false, $name = __( '(BB) Connections' , '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.9.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.