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



wp_theme_editor_filetypes ›

Since4.4.0
已弃用n/a
apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme )
参数: (2)
  • (string[]) $default_types List of allowed file types.
    Required: Yes
  • (WP_Theme) $theme The current Theme object.
    Required: Yes
定义在:
文档:

Filters the list of file types allowed for editing in the Theme editor.





源码

$file_types = apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme );