I published some code snippets on an older post for performing this trick. The code was a bit hacky. I have identified some hooks for better implementation in WordPress 3.2 (and probalby previous versions as well.) Here’s the code:
add_action('load-index.php', 'dashboard_Redirect');
function dashboard_Redirect(){
wp_redirect(admin_url('admin.php?page=my-plugin-page'));
}
Nice and easy!
Alternatively, you may choose to redirect to ‘edit.php’ which will take you to a list of all your posts!
Happy coding!
My name is Amado Martinez. I'm a 23 year old programmer living in Reynosa, Mexico. I specialize in website systems. I'm not a frequent blogger, but I hope that you find my web development tips helpful and perhaps even AWESOME! Thanks for visiting :)
Add One