How to redirect to Dashboard
-
Hi, I’m about to turn WordPress into a fully WebApp and so i wanted to do some redirection to dashboard when someone attemps to access to the front-end.
As i know, wp_redirect() is recommended in this case, however when i’m trying to do it with “init” action hook as following :
if( !is_admin() )
{
wp_redirect( get_site_url() . ‘/wp-admin/’ , 301 );
}As i was’nt expecting, it’s not working… any one help !!!
- The topic ‘How to redirect to Dashboard’ is closed to new replies.