bbp_admin_setting_callback_favorites()

Allow favorites setting field

Description

Source

File: bp-forums/admin/settings.php

function bbp_admin_setting_callback_favorites() {
?>

	<input name="_bbp_enable_favorites" id="_bbp_enable_favorites" type="checkbox" value="1" <?php checked( bbp_is_favorites_active( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_enable_favorites' ); ?> />
	<label for="_bbp_enable_favorites"><?php esc_html_e( 'Allow users to mark discussions as favorites', 'buddyboss' ); ?></label>

<?php
}

Changelog

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