BBP_Topics_Widget::__construct()

Forums Topic Widget

Description

Registers the topic widget

Source

File: bp-forums/common/widgets.php

	public function __construct() {
		$widget_ops = apply_filters( 'bbp_topics_widget_options', array(
			'classname'   => 'widget_display_topics',
			'description' => __( 'A list of recent discussions, sorted by popularity or freshness.', 'buddyboss' )
		) );

		parent::__construct( false, __( '(BB) Forum Recent Topics', 'buddyboss' ), $widget_ops );
	}

Changelog

Changelog
Version Description
bbPress (r2653) 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.