oembed_endpoint_url

FILTER wp-includes\embed.php (ligne 477) github
Filters the oEmbed endpoint URL.

Paramètres

Entrée :
$url, $permalink, $format
Sortie :
@param string $url       The URL to the oEmbed endpoint.
@param string $permalink The permalink used for the `url` query arg.
@param string $format    The requested response format.

Utilisation

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

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

Actualités

Chargement des actualités...