bp_embed_message_cache( string $cache, int $id, string $cachekey )

Fetch a private message item’s cached embeds.

Description Description

Used during BP_Embed::parse_oembed() via bp_messages_embed().

Top ↑

Parameters Parameters


(string) (Required) An empty string passed by BP_Embed::parse_oembed() for functions like this one to filter.


(int) (Required) The ID of the message item.


(string) (Required) The cache key generated in BP_Embed::parse_oembed().

Top ↑

Return Return

(mixed) The cached embeds for this message item.

Source Source

File: bp-messages/bp-messages-template.php

function bp_embed_message_cache( $cache, $id, $cachekey ) {
	return bp_messages_get_meta( $id, $cachekey );

Top ↑

Changelog Changelog

Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.