wp_embed_handler_video

FUNCTION wp-includes\embed.php (ligne 275) github
Filters the audio embed output.

Paramètres

Entrée :
$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

// Utilisation de la fonction wp_embed_handler_video
$result = wp_embed_handler_video($matches, $attr, $url, $rawattr);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...