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



_add_themes_utility_last › WordPress Function

Since3.0.0
Deprecatedn/a
_add_themes_utility_last ( No parameters )
Access:
  • private
Defined at:
Codex:
Change Log:
  • 5.9.0

Adds the 'Theme File Editor' menu item to the bottom of the Appearance (non-block themes) or Tools (block themes) menu.



Source

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