Move from one function to another
-
Hi,
I need some help getting a plugin i’m trying to make work.
Basically, i’ve set up a plugin that displays a form, once the form is submitted the data is entered into the database via wpdb->, this is all fine, however, when the form is submitted i’d like to move from the current page to a different page in the same admin area.
I’ve created a new admin menu, for example:
New Admin Menu
—————
Info Page
Add PageThe add page lets me submit the form, but when its done i can’t work out how to clost the add page and move to the Info Page.
All the code is in the main plugin file, the contents of the Info and Add page are contained within functions. So when you load the Add page you load the _add function, when that function is complete i need to redirect to the page showing the Info Page content.
If somebody could help i’d really appreciate it.
Thanks,
Andrew
- The topic ‘Move from one function to another’ is closed to new replies.