wordpress / latest / functions / _add_themes_utility_last.html

_add_themes_utility_last()

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 ‘Theme File Editor’ menu item to the bottom of the Appearance (non-block themes) or Tools (block themes) menu.

Source

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

function _add_themes_utility_last() {
	add_submenu_page(
		wp_is_block_theme() ? 'tools.php' : 'themes.php',
		__( 'Theme File Editor' ),
		__( 'Theme File Editor' ),
		'edit_themes',
		'theme-editor.php'
	);
}

Uses

Uses Description

Changelog

Version Description
5.9.0 Renamed 'Theme Editor' to 'Theme File Editor'.
Relocates to Tools for block themes.
3.0.0 Introduced.

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