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