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



wp_theme_editor_filetypes › WordPress过滤钩子

Since4.4.0
已弃用n/a
apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme )
参数: (2)
  • (string[]) $default_types An array of editable theme file extensions.
    Required: Yes
  • (WP_Theme) $theme The active theme object.
    Required: Yes
定义在:
文档:

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





源码

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