Conversation
review · 5 starsIt works well but only on login for me. On the logout, I have the plugin simple:press that redirect the user to the forum page. I was hoping this plugin could fixe this wrong behaviour. So I am using this plugin with Peter login redirection, that works on the logout. But Peter login redirection doesn’t keep the user on the page he was.
Hi, This issue isn’t with Sky Login Redirect. Both its login and logout redirections work. Check the simple:press options in case their redirect can be disabled or raise the issue with their developer.
Hi again, To disable SimplePress logout redirect, add this line in your functions.php file : remove_action('wp_logout', sp_logout_redirect);
Thanks a lot for your quick answer. With this line I get the following error. Fatal error: Call to undefined function remove_action() in /home/icinge5/public_html/wp-includes/functions.php on line 10 I think I will stick with the second plugin for now, because I am not that confortable with changing the code, I considere this as a bag practise that can lead to issue during updates.
Hi, You’ve got the wrong functions.php file : I meant your theme’s functions.php ( /wp-content/themes/*name_of_your_theme/functions.php ). I wasn’t considering editing a WordPress core file. remove_action() is a standard WP function.
Hi, Ok that works, thank you very much! Will I have to insert that line every time I update my theme? Cédric
Hi, You’re welcome! The best way would be to create a functionality plugin (using this plugin for example : https://wordpress.org/plugins/functionality/ ) and put the line of code there so that the change is retained when you upgrade your theme. Best regards, Matt
Hi again, Thank you for your suggestion it is a good idea. In order to make it work however, I add to use plugin organizer to change the order plugin load. I hope this is not too much plugins added to keep performance. I don’t think so. Cédric
Hi, This issue isn’t with Sky Login Redirect. Both its login and logout redirections work. Check the simple:press options in case their redirect can be disabled or raise the issue with their developer.
Hi again, To disable SimplePress logout redirect, add this line in your functions.php file : remove_action('wp_logout', sp_logout_redirect);
Thanks a lot for your quick answer. With this line I get the following error. Fatal error: Call to undefined function remove_action() in /home/icinge5/public_html/wp-includes/functions.php on line 10 I think I will stick with the second plugin for now, because I am not that confortable with changing the code, I considere this as a bag practise that can lead to issue during updates.
Hi, You’ve got the wrong functions.php file : I meant your theme’s functions.php ( /wp-content/themes/*name_of_your_theme/functions.php ). I wasn’t considering editing a WordPress core file. remove_action() is a standard WP function.
Hi, Ok that works, thank you very much! Will I have to insert that line every time I update my theme? Cédric
Hi, You’re welcome! The best way would be to create a functionality plugin (using this plugin for example : https://wordpress.org/plugins/functionality/ ) and put the line of code there so that the change is retained when you upgrade your theme. Best regards, Matt
Hi again, Thank you for your suggestion it is a good idea. In order to make it work however, I add to use plugin organizer to change the order plugin load. I hope this is not too much plugins added to keep performance. I don’t think so. Cédric