bp_activity_is_feed_enable( string $feed_id = '' )

Checks whether an activity feed is enabled.

Parameters Parameters


(string) (Optional) The feed identifier. Possible values are: 'sitewide', 'personal', 'friends', 'mygroups', 'mentions', 'favorites'.

Default value: ''

Source Source

File: bp-activity/bp-activity-functions.php

function bp_activity_is_feed_enable( $feed_id = '' ) {
	 * Filters if BuddyPress should consider feeds enabled. If disabled, it will return early.
	 * @since 1.8.0
	 * @since 8.0.0 Adds the `$feed_id` parameter.
	 * @param bool   $value   Defaults to true aka feeds are enabled.
	 * @param string $feed_id The feed identifier.
	return (bool) apply_filters( 'bp_activity_enable_feeds', true, $feed_id );

Top ↑

Changelog Changelog

Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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