WordPress开发者和主题制作者的搜索引擎



wp_mediaelement_fallback ›

Since3.6.0
已弃用n/a
wp_mediaelement_fallback ( $url )
参数:
  • (string) $url The media element URL.
    Required: Yes
返回:
  • (string) Fallback HTML.
定义在:
文档:

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



源码

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 );
}