bp_use_embed_in_activity()
Are oembeds allowed in activity items?
Description
Return
(bool) False when activity embed support is disabled; true when enabled. Default: true.
Source
File: bp-core/bp-core-functions.php
function bp_use_embed_in_activity() {
/**
* Filters whether or not oEmbeds are allowed in activity items.
*
* @since BuddyPress 1.5.0
*
* @param bool $value Whether or not oEmbeds are allowed.
*/
return apply_filters( 'bp_use_oembed_in_activity', !defined( 'BP_EMBED_DISABLE_ACTIVITY' ) || !BP_EMBED_DISABLE_ACTIVITY );
}
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.