Filters the cached oEmbed HTML.
$cache, $url, $attr, $post_id
Sortie :
@param string $cache The cached HTML result, stored in post meta. @param string $url The attempted embed URL. @param array $attr An array of shortcode attributes. @param int $post_id Post ID.
// Modifier la valeur avec le filtre 'embed_oembed_html'
add_filter('embed_oembed_html', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($cache) {
// Modifier la valeur
return $cache;
}
Chargement des actualités...