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.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |