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&#8217;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
}


Top ↑

Changelog

Changelog
VersionDescription
2.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
Show More