打开WordPress隐藏的“全部设置”选项

佚名
佚名
管理员
20
文章
0
粉丝
WordPress评论121阅读模式

WordPress后台,有一个默认隐藏的“全部设置”选项,包含整个WordPress几乎所有设置选项字段,比如常规设置、主题设置、插件设置等等。

文章源自QAQE-https://qaqe.cn/1.html

默认的访问地址

http://域名/wp-admin/options.php文章源自QAQE-https://qaqe.cn/1.html

也可以将下面的代码添加到当前主题的 functions.php 文件,就可以在后台 >设置,看到一个“全部设置”菜单。文章源自QAQE-https://qaqe.cn/1.html

// 显示所有设置菜单
function all_settings_link() {
	add_options_page(__('All Settings'), __('All Settings'), 'administrator', 'options.php');
}
add_action('admin_menu', 'all_settings_link');
文章源自QAQE-https://qaqe.cn/1.html文章源自QAQE-https://qaqe.cn/1.html

信息来源于网络,如觉有风险,请勿参与!

客服①
微信扫一扫
weinxin
Q441317
微信号已复制
客服②
QQ扫一扫
weinxin
1624348999
QQ号已复制
佚名
  • woredpress
  • 后台
  • 设置
  • 全部设置
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证