Home Wordpress admin redirect working locally, but not on live
Reply: 0

Wordpress admin redirect working locally, but not on live

user757 Published in May 25, 2018, 11:12 am

I've got this snippet in my functions.php which redirects the user on successful login from the wp-admin dashboard to another admin page. It works fine on my local version, but when I upload this to my production server it isn't working at all, and on login it just continues to the dashboard like default.

I don't think it's a problem with the implementation, as the code is the same across both environments, so is their some kind of apache server config somewhere which could be preventing this redirect from happening?

function login_redirect_func( $redirect_to, $request, $user ){
    return admin_url('admin.php?page=acf-options-settings');
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.319247 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO