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

Wordpress admin redirect working locally, but not on live

Silveredge9
1#
Silveredge9 Published in 2018-01-12 10:19:18Z

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');
}
add_filter('login_redirect','login_redirect_func',10,3);
You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO