media_upload_html_bypass() WordPress Function
The media_upload_html_bypass() function allows you to bypass the default WordPress media uploader and use your own custom HTML to upload media files. This is useful if you want to create a custom media uploader or if you want to use an existing media uploader that is not compatible with the WordPress media uploader.
media_upload_html_bypass() #
Displays the browser’s built-in uploader message.
Source
File: wp-admin/includes/media.php
function media_upload_html_bypass() { ?> <p class="upload-html-bypass hide-if-no-js"> <?php _e( 'You are using the browser’s built-in file uploader. The WordPress uploader includes multiple file selection and drag and drop capability. <a href="#">Switch to the multi-file uploader</a>.' ); ?> </p> <?php }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |