How to remove black (WordPress) dashboard after logged in?
oh 😀
simply do this
add_action('show_admin_bar', '__return_false');
Rahul Aryan commented
Yes 🙂
oh you mean you are redirected to wp-admin :).
just add this code to your function.php file inside your active theme.
for registartion
add_filter( 'registration_redirect', 'openwp_registration_redirect' ); function openwp_registration_redirect() { return get_permalink(ap_opt('base_page')); }
For login
add_filter( 'login_redirect', 'openwp_login_redirect' ); function openwp_login_redirect() { return get_permalink(ap_opt('base_page')); }
hareram commented
not working. May be i need to write in anther language…. I am all done… Q&A working. i wanted to post a dummy Q i had to log in. I logged in with a different account.. (Q&A) was successful. But after logged in a new back naviagation area appeared and on the left handside it has got (W) sign… then the name of my site then a drop down menu…( menu with dashboard, anspress, profile ……
Is this to remove the black wp bar at the top?