editable_extensions

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'editable_extensions', string[] $default_types, string $plugin )

Parameters Parameters

$default_types

(string[]) An array of editable plugin file extensions.

$plugin

(string) Path to the plugin file relative to the plugins directory.

Source Source

File: wp-admin/includes/file.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.0 Added the $plugin parameter.
2.8.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.