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

Set a private message item’s embed cache.


Description Description

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


Top ↑

Parameters 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 Source

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

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


Top ↑

Changelog 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.