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