wpseek.com
A WordPress-centric search engine for devs and theme authors



editable_extensions › WordPress Filter Hooks

Since4.9.0
Deprecatedn/a
apply_filters( 'editable_extensions', $default_types, $plugin )
Parameters: (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
Defined at:
Codex:

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





Source

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