最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugin development - Add New Button in Admin Panel

programmeradmin1浏览0评论

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.)

发布评论

评论列表(0)

  1. 暂无评论