Timeline for How to redirect to action on custom page within admin section
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 8, 2012 at 15:40 | comment | added | brasofilo | Multi-post: stackoverflow.com/q/13774231/1287812 | |
Dec 8, 2012 at 14:22 | comment | added | Ralf912 |
You do not want to show another page and you do not want to do a redirection. You are on page rls_logotype which is a subpage of options-general.php What you want to do is to detect an action. A redirect is if you go from site A to site B (e.g. from dashboard.php to options.php). You can only use $_REQUEST (or $_GET / $_POST ) to detect an action in your url-parameters.
|
|
Dec 8, 2012 at 14:11 | answer | added | Ralf912 | timeline score: 1 | |
Dec 8, 2012 at 13:56 | comment | added | dfens | It does redirect (changes link from options-general.php?page=rls_logotypes to options-general.php?page=rls_logotypes&action=edit&book=element1) but my question here is which helper functions(if they exist) should I use to detect this redirection and show another page. My question is should i detect it manually or could I use some functions/hooks. row_actions is just a function from WP_List_Tables which inserts a div in to the table row with links. | |
Dec 8, 2012 at 13:49 | comment | added | Ralf912 |
Problem begins when 'edit' on element is clicked. It should redirect to settings page. Where is the problem? Where redirect it now? What is the best way to do what? Create a redirection? Or create a propper link to an admin page? Please clearify your question. What does $this->row_actions($actions) do?
|
|
Dec 8, 2012 at 13:21 | history | edited | dfens | CC BY-SA 3.0 |
added 234 characters in body; edited title
|
Dec 8, 2012 at 13:02 | history | tweeted | twitter.com/#!/StackWordPress/status/277397663475970048 | ||
Dec 8, 2012 at 12:06 | review | First posts | |||
Dec 8, 2012 at 12:35 | |||||
Dec 8, 2012 at 11:47 | history | asked | dfens | CC BY-SA 3.0 |