_add_themes_utility_last() - WordPress 函数参考中文文档

返回介绍

_add_themes_utility_last()

发布于 2017-09-11 字数 1226 浏览 783 评论 0

Alert: 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.

_add_themes_utility_last()

Adds the (theme) ‘Editor’ link to the bottom of the Appearance menu.


描述


源代码

File: wp-admin/menu.php

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

更新日志

Version 描述
3.0.0 Introduced.

相关函数

Uses

  • wp-admin/includes/plugin.php:
    add_submenu_page()
  • wp-includes/l10n.php:
    _x()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!