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

Set a private message item’s embed cache.

Description

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

Parameters

$cache

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

$cachekey

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

$id

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

Source

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

function bp_embed_message_save_cache( $cache, $cachekey, $id ) {
	bp_messages_update_meta( $id, $cachekey, $cache );
}

Changelog

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.