Add New Button in Admin Panel
-
I am developing a plugin. I have an Add New button in one of my Admin panel page like below.
I would like to redirect to
https://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 ?f
How did it done here ?
https://i.stack.imgur.com/3Jqhd.png
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add New Button in Admin Panel’ is closed to new replies.