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

WordPress后台,有一个默认隐藏的“全部设置”选项,包含整个WordPress几乎所有设置选项字段,比如常规设置、主题设置、插件设置等等。默认的访问地址为 http://yoursite/wp-admin/options.php ,只需将下面的代码添加到当前主题的 functions.php 文件,就可以在后台 >设置,看到一个“全部设置”菜单。

// 显示所有设置菜单
function all_settings_link() {
	add_options_page(__('All Settings'), __('All Settings'), 'administrator', 'options.php');
}
add_action('admin_menu', 'all_settings_link');

来源:

https://www.wpdaxue.com/display-all-settings.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_32462.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?