bp_platform_is_feed_enable( string $activity_type, bool $default = true )

Checks if default platform activity feed is enabled.

Description

Parameters

$activity_type

(string) (Required) Activity Type

$default

(bool) (Optional) Fallback value if not found in the database. Default: false.

Default value: true

Return

(bool) Is post type feed enabled or not

Source

File: bp-core/bp-core-options.php

function bp_platform_is_feed_enable( $activity_type, $default = true ) {
	return (bool) apply_filters( 'bp_platform_is_feed_enable', (bool) get_option( $activity_type, $default ) );
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.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.