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



editable_extensions › WordPress过滤钩子

Since4.9.0
已弃用n/a
apply_filters( 'editable_extensions', $default_types, $plugin )
参数: (2)
  • (string[]) $default_types An array of editable plugin file extensions.
    Required: Yes
  • (string) $plugin Path to the plugin file relative to the plugins directory.
    Required: Yes
定义在:
文档:

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





源码

$file_types = (array) apply_filters( 'editable_extensions', $default_types, $plugin );