bp_embed_activity_cache( string $cache, int $id, string $cachekey )
Fetch an activity item’s cached embeds.
Description
Used during BP_Embed::parse_oembed() via bp_activity_embed().
See also
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 activity item.
- $cachekey
-
(Required) The cache key generated in BP_Embed::parse_oembed().
Return
(mixed) The cached embeds for this activity item.
Source
File: bp-activity/bp-activity-functions.php
function bp_embed_activity_cache( $cache, $id, $cachekey ) { return bp_activity_get_meta( $id, $cachekey ); }
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.