_add_themes_utility_last

The timeline below displays how wordpress function _add_themes_utility_last has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.9

/**
 * Adds the 'Theme File Editor' menu item to the bottom of the Appearance (non-block themes)
 * or Tools (block themes) menu.
 *
 * @access private
 * @since 3.0.0
 * @since 5.9.0 Renamed 'Theme Editor' to 'Theme File Editor'.
 *              Relocates to Tools for block themes.
 */
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');
}

WordPress Version: 5.7

/**
 * Adds the 'Theme Editor' link to the bottom of the Appearance menu.
 *
 * @access private
 * @since 3.0.0
 */
function _add_themes_utility_last()
{
    // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook.
    add_submenu_page('themes.php', __('Theme Editor'), __('Theme Editor'), 'edit_themes', 'theme-editor.php');
}

WordPress Version: 5.4

/**
 * Adds the (theme) 'Editor' link to the bottom of the Appearance menu.
 *
 * @access private
 * @since 3.0.0
 */
function _add_themes_utility_last()
{
    // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook.
    add_submenu_page('themes.php', __('Theme Editor'), __('Theme Editor'), 'edit_themes', 'theme-editor.php');
}

WordPress Version: 5.1

/**
 * Adds the (theme) 'Editor' link to the bottom of the Appearance menu.
 *
 * @access private
 * @since 3.0.0
 */
function _add_themes_utility_last()
{
    // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook
    add_submenu_page('themes.php', __('Theme Editor'), __('Theme Editor'), 'edit_themes', 'theme-editor.php');
}

WordPress Version: 4.5

/**
 * Adds the (theme) 'Editor' link to the bottom of the Appearance menu.
 *
 * @access private
 * @since 3.0.0
 */
function _add_themes_utility_last()
{
    // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook
    add_submenu_page('themes.php', _x('Editor', 'theme editor'), _x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');
}

WordPress Version: 4.3

/**
 *
 */
function _add_themes_utility_last()
{
    // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook
    add_submenu_page('themes.php', _x('Editor', 'theme editor'), _x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');
}

WordPress Version: 3.7

function _add_themes_utility_last()
{
    // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook
    add_submenu_page('themes.php', _x('Editor', 'theme editor'), _x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');
}