bp_activity_can_favorite()
Determine whether favorites are allowed.
Description
Defaults to true, but can be modified by plugins.
Return
(bool) True if comment can receive comments.
Source
File: bp-activity/bp-activity-template.php
function bp_activity_can_favorite() { /** * Filters whether or not users can favorite activity items. * * @since BuddyPress 1.5.0 * * @param bool $value Whether or not favoriting is enabled. */ return apply_filters( 'bp_activity_can_favorite', true ); }
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.