定义默认媒体上载选项卡
原型
media_upload_tabs()
返回值
(array)
默认标签
源文件
路径:wp-admin/includes/media.php
<?php
...
function media_upload_tabs() {
$_default_tabs = array(
'type' => __('From Computer'), // handler action suffix => tab text
'type_url' => __('From URL'),
'gallery' => __('Gallery'),
'library' => __('Media Library')
);
/**
* Filters the available tabs in the legacy (pre-3.5.0) media popup.
*
* @since 2.5.0
*
* @param array $_default_tabs An array of media tabs.
*/
return apply_filters( 'media_upload_tabs', $_default_tabs );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/media_upload_tabs/