media_upload_html_bypass

函数
media_upload_html_bypass ( No parameters )

media_upload_html_bypass函数是一个过滤器,允许开发者绕过WordPress中媒体上传器的HTML输出。它可以用来修改媒体上传器的行为或用自定义的HTML来代替它。

显示浏览器内置的上传器信息。

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
}

常见问题

FAQs
查看更多 >