Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_mediaelement_fallback ›

Desde3.6.0
Obsoleton/a
wp_mediaelement_fallback ( $url )
Parâmetros:
  • (string) $url The media element URL.
    Required: Yes
Retorna:
  • (string) Fallback HTML.
Definido em:
Codex:

Provides a No-JS Flash fallback as a last resort for audio / video.



Fonte

function wp_mediaelement_fallback( $url ) {
	/**
	 * Filters the Mediaelement fallback output for no-JS.
	 *
	 * @since 3.6.0
	 *
	 * @param string $output Fallback output for no-JS.
	 * @param string $url    Media file URL.
	 */
	return apply_filters( 'wp_mediaelement_fallback', sprintf( '<a href="%1$s">%1$s</a>', esc_url( $url ) ), $url );
}