Filters whether to load the default embed handlers. Returning a falsey value will prevent loading the default embed handlers.
$matches, $attr, $url, $rawattr
Sortie :
@param bool $maybe_load_embeds Whether to load the embeds library. Default true. @param callable $handler Audio embed handler callback function. @param callable $handler Video embed handler callback function. @param array $matches The RegEx matches from the provided regex when calling @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_youtube
$result = wp_embed_handler_youtube($matches, $attr, $url, $rawattr);
if ($result) {
// Votre logique ici
}
Chargement des actualités...