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



_add_plugin_file_editor_to_tools › WordPress Function

Since5.9.0
Deprecatedn/a
_add_plugin_file_editor_to_tools ( No parameters )
Access:
  • private
Defined at:
Codex:

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



Source

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