WordPress开发者和主题制作者的搜索引擎



media_upload_default_tab ›

Since2.5.0
已弃用n/a
apply_filters( 'media_upload_default_tab', 'type' )
参数:
  • (string) $type The default media popup tab. Default 'type' (From Computer).
    Required: Yes
定义在:
文档:

Filters the default tab in the legacy (pre-3.5.0) media popup.





源码

$tab = apply_filters( 'media_upload_default_tab', 'type' );