admin管理员组文章数量:1325236
I am learning Plugin Development in WordPress. I have an Add New button in one of my Admin panel page like below.
I would like to redirect to http://127.0.0.1/wordpressplugin/wp-admin/admin.php?page=newAddress
when click on it.
I wrote below code for this
echo '<div class="wrap"><h1 class="wp-heading-inline">Addresses</h1>
<a href="'.admin_url("admin.php?page=newAddress").'" class="page-title-action">Add New</a>';
But this code is not redirecting to that link. What is the solution ?
How did it done here ?
Thanks.
(Sorry for my poor English.)
本文标签: plugin developmentAdd New Button in Admin Panel
版权声明:本文标题:plugin development - Add New Button in Admin Panel 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742166062a2425844.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论