admin管理员组文章数量:1328786
I'd like to append an admin notice to the edit page of a particular 3rd party plugin to help prevent user error.
The URL is .../wp-admin/admin.php?page=plugin-name&action=edit...
As $pagenow only returns admin.php and the get_current_screen value for action returns "", how can I identify the full URL to effectively as if page="xx" and action = "yy"?
Thanks
I'd like to append an admin notice to the edit page of a particular 3rd party plugin to help prevent user error.
The URL is .../wp-admin/admin.php?page=plugin-name&action=edit...
As $pagenow only returns admin.php and the get_current_screen value for action returns "", how can I identify the full URL to effectively as if page="xx" and action = "yy"?
Thanks
Share Improve this question asked Nov 2, 2019 at 13:19 user8481001user8481001 11 Answer
Reset to default 0$parts = parse_url( admin_url() );
$url = "{$parts['scheme']}://{$parts['host']}" . add_query_arg( NULL, NULL );
本文标签: Get full URL of WP plugin admin page
版权声明:本文标题:Get full URL of WP plugin admin page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742258687a2442106.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论