apply_filters( 'bp_embed_get_cache', string $cache, int $id, string $cachekey, string $url, array $attr, array $rawattr )

Filters the cache value to be used in the oEmbed, if exists.

Description

Parameters

$cache

(string) Empty initial cache value.

$id

(int) ID that the caching is for.

$cachekey

(string) Key to use for the caching in the database.

$url

(string) The URL attempting to be embedded.

$attr

(array) Parsed shortcode attributes.

$rawattr

(array) Unparsed shortcode attributes.

Source

File: bp-core/classes/class-bp-embed.php

Changelog

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.