embed_handler_html

FILTER wp-includes\class-wp-embed.php (ligne 170) github
Filters the returned embed HTML.

Paramètres

Entrée :
$return, $url, $attr
Sortie :
@param string $return The HTML result of the shortcode.
@param string $url    The embed URL.
@param array  $attr   An array of shortcode attributes.

Utilisation

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

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

Actualités

Chargement des actualités...