我使用add_submenu_page在wp admin中添加新页面。
该页面是使用以下URL创建的:domain.com/wp-admin/admin.php?page=mynewpage。
我需要的是使用自定义网址创建它, 例如:domain.com/mynewpage。
可能吗?
如果没有, 如何将URL更改为我想要的新URL?
谢谢!
编辑:
如果无法删除wp-admin, 那么如何将其设置为domain.com/wp-admin/mynewpage?
#1
认为你想要它不能在wordpress管理面板中使用。你可以根据需要构建一个单独的面板, 可以通过自定义页面is_page()函数来实现。为了确保此页面的安全, 你应该授予管理员用户访问权限。
来源:
https://www.srcmini02.com/64632.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_41296.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57