_add_plugin_file_editor_to_tools() – Adds the ‘Plugin File Editor’ menu item after the ‘Themes File Editor’ in Tools for block themes.

You appear to be a bot. Output may be restricted

Description

Adds the 'Plugin File Editor' menu item after the 'Themes File Editor' in Tools for block themes.

Usage

_add_plugin_file_editor_to_tools();

Parameters

Returns

void

Source

File name: wordpress/wp-admin/menu.php


Lines:

1 to 13 of 13
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'
  );
}
 

 View on GitHub View on Trac