bp_embed_message_cache( string $cache, int $id, string $cachekey )
Fetch a private message item’s cached embeds.
Description
Used during BP_Embed::parse_oembed() via bp_messages_embed().
Parameters
- $cache
-
(Required) An empty string passed by BP_Embed::parse_oembed() for functions like this one to filter.
- $id
-
(Required) The ID of the message item.
- $cachekey
-
(Required) The cache key generated in BP_Embed::parse_oembed().
Return
(mixed) The cached embeds for this message item.
Source
File: bp-messages/bp-messages-template.php
function bp_embed_message_cache( $cache, $id, $cachekey ) { return bp_messages_get_meta( $id, $cachekey ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.2.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.