_add_plugin_file_editor_to_tools

The timeline below displays how wordpress function _add_plugin_file_editor_to_tools has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.9

/**
 * Adds the 'Plugin File Editor' menu item after the 'Themes File Editor' in Tools
 * for block themes.
 *
 * @access private
 * @since 5.9.0
 */
function _add_plugin_file_editor_to_tools()
{
    if (!wp_is_block_theme()) {
        return;
    }
    add_submenu_page('tools.php', __('Plugin File Editor'), __('Plugin File Editor'), 'edit_plugins', 'plugin-editor.php');
}