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