函数文档

media_upload_html_bypass()

💡 云策文档标注

概述

media_upload_html_bypass() 函数用于显示浏览器的内置上传器消息,通常与 WordPress 媒体上传功能相关。

关键要点

  • 函数 media_upload_html_bypass() 显示浏览器内置上传器的消息。
  • 它包含一个按钮链接,允许用户切换到多文件上传器。
  • 该函数自 WordPress 2.6.0 版本引入。

代码示例


📄 原文内容

Displays the browser’s built-in uploader message.

Source

function media_upload_html_bypass() {
?>
<p class="upload-html-bypass hide-if-no-js">
Switch to the multi-file uploader</button>.' ),
'type="button" class="button-link"'
);
?>
</p>
</pre><p class="wporg-dot-link-list"><a href="https://developer.wordpress.org/reference/files/wp-admin/includes/media.php/">View all references</a> <a href="https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/media.php#L3051">View on Trac</a> <a href="https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/media.php#L3051-L3063">View on GitHub</a></p></section>

<section class="wp-block-wporg-code-reference-related" data-nosnippet="true"><h2 id="related" class="is-toc-heading wp-block-heading has-heading-5-font-size" tabindex="-1" ><a href="#related">Related</a></h2> <section style="margin-top:var(--wp--preset--spacing--20)" class="wp-block-wporg-code-table" id="uses"><figure class="wp-block-table "><table><thead><tr><th scope="col">Uses</th><th scope="col">Description</th></tr></thead><tbody><tr class=""><td><a href="https://developer.wordpress.org/reference/functions/__/">__()</a><code>wp-includes/l10n.php

Retrieves the translation of $text.

Changelog

Version Description
2.6.0 Introduced.