embed_oembed_html

FILTER wp-includes\class-wp-embed.php (ligne 291) github
Filters the cached oEmbed HTML.

Paramètres

Entrée :
$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.

Utilisation

// 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;
}

Actualités

Chargement des actualités...