wp_mediaelement_fallback WordPress Filter Hook

The wp_mediaelement_fallback hook is used to provide a fallback for when the MediaElement.js library is not available. This can happen when a user's browser does not support HTML5 or when the MediaElement.js library is not included in a Wordpress installation. When this happens, the wp_mediaelement_fallback hook will be called and the fallback HTML code will be used.

apply_filters( 'wp_mediaelement_fallback', string $output, string $url ) #

Filters the Mediaelement fallback output for no-JS.


Parameters

$output

(string)Fallback output for no-JS.

$url

(string)Media file URL.


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More