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.


Top ↑

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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.