post_embed_url

FILTER wp-includes\embed.php (ligne 441) github
Filters the URL to embed a specific post.

Paramètres

Entrée :
$embed_url, $post
Sortie :
@param string  $embed_url The post embed URL.
@param WP_Post $post      The corresponding post object.

Utilisation

// Modifier la valeur avec le filtre 'post_embed_url'
add_filter('post_embed_url', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($embed_url) {
    // Modifier la valeur
    return $embed_url;
}

Actualités

Chargement des actualités...