Filters the audio embed output.
$matches, $attr, $url, $rawattr
Sortie :
@param string $audio Audio embed output. @param array $attr An array of embed attributes. @param string $url The original URL that was matched by the regex. @param array $rawattr The original unmodified attributes. @param array $matches The RegEx matches from the provided regex when calling wp_embed_register_handler(). @param array $attr Embed attributes. @param string $url The original URL that was matched by the regex. @param array $rawattr The original unmodified attributes. @return string The embed HTML.
// Utilisation de la fonction wp_embed_handler_video
$result = wp_embed_handler_video($matches, $attr, $url, $rawattr);
if ($result) {
// Votre logique ici
}
Chargement des actualités...