wpseek.com
WordPress开发者和主题制作者的搜索引擎
media_upload_tabs › WordPress Function
Since2.5.0
已弃用n/a
› media_upload_tabs ( 没有参数 )
返回: |
|
定义在: |
|
文档: |
Defines the default media upload tabs.
Related Functions: the_media_upload_tabs, media_upload_audio, media_upload_image, media_upload_header, media_upload_html_bypass
源码
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 string[] $_default_tabs An array of media tabs. */ return apply_filters( 'media_upload_tabs', $_default_tabs ); }