wordpress / latest / functions / _add_plugin_file_editor_to_tools.html

_add_plugin_file_editor_to_tools()

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

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

Source

File: wp-admin/menu.php. View all references

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'
	);
}

Uses

Uses Description

Changelog

Version Description
5.9.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_add_plugin_file_editor_to_tools