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