Timeline for wp_redirect not working on admin menu page
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 11, 2013 at 23:24 | comment | added | 730wavy |
ok i did but its still in the same spot -- function register_web_menu_page () { global $menu; $pos = count($menu); $menu[$pos] = array ( 'View My Website', // menu title 'add_users', // capability home_url(), // menu item url null, 'menu-top menu-icon-generic toplevel_page_web_menu_page', // menu item class 'View My Website', // page title false // menu function ); }
|
|
Oct 9, 2013 at 2:45 | comment | added | gmazzap |
change 9 (theat was on your code...) with count($menu) so: $pos = count($menu); $menu[$pos] = array( ...
|
|
Oct 9, 2013 at 2:20 | vote | accept | 730wavy | ||
Oct 9, 2013 at 2:20 | comment | added | 730wavy | Ok thanks. I used the first snippet and it works, only problem now is the menu item moved up one and is no longer the last item. Any way to fix this? | |
Oct 8, 2013 at 15:35 | history | edited | gmazzap | CC BY-SA 3.0 |
add another no standard, but simpler solution.
|
Oct 8, 2013 at 11:23 | history | answered | gmazzap | CC BY-SA 3.0 |