admin管理员组文章数量:1122846
I would like to fetch some portions of URL of Admin Page.Like I would like to fetch admin.php?page=my-custom-page
from this URL .php?page=my-custom-page
.
How can I do that ?
I would like to fetch some portions of URL of Admin Page.Like I would like to fetch admin.php?page=my-custom-page
from this URL https://example.com/wp-admin/admin.php?page=my-custom-page
.
How can I do that ?
Share Improve this question asked Aug 25, 2024 at 5:55 FoysalFoysal 4451 gold badge5 silver badges15 bronze badges1 Answer
Reset to default 1Detecting Wordpress admin screens using URL parameters can be a pain in the butt and also raise security issues. However, there's a whole set of built in functions ready to help... but first off, why are you trying to detect an admin page using a funky string like admin.php?page=my-custom-page is this an admin page? an options page? a custom post type? each has it's own way of implementing in WP admin.
本文标签: plugin developmentFetch portion of Admin URL
版权声明:本文标题:plugin development - Fetch portion of Admin URL 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736296865a1929889.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论