wp_mediaelement_fallback

FUNCTION wp-includes\media.php (ligne 3084) github
Filters the playlist output. Returning a non-empty value from the filter will short-circuit generation of the default playlist output, returning the passed value instead.

Paramètres

Entrée :
$url
Sortie :
@param string $output   Playlist output. Default empty.
@param array  $attr     An array of shortcode attributes.
@param int    $instance Unique numeric ID of this playlist shortcode instance.
@param string $type  Type of playlist. Possible values are 'audio' or 'video'.
@param string $style The 'theme' for the playlist. Core provides 'light' and 'dark'.
@param string $url The media element URL.
@return string Fallback HTML.

Utilisation

// Utilisation de la fonction wp_mediaelement_fallback
$result = wp_mediaelement_fallback($url);

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

Actualités

Chargement des actualités...