oembed_result

FILTER wp-includes\class-wp-oembed.php (ligne 430) github
Filters the HTML returned by the oEmbed provider.

Paramètres

Entrée :
$this->data2html( $data, $url
Sortie :
@param string|false $data The returned oEmbed HTML (false if unsafe).
@param string       $url  URL of the content to be embedded.
@param string|array $args Optional. Additional arguments for retrieving embed HTML.

Utilisation

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

function ma_fonction_filtre($this->data2html( $data) {
    // Modifier la valeur
    return $this->data2html( $data;
}

Actualités

Chargement des actualités...