Login redirect
Add this hook:
function my_redirect_to_ap_base_page() { return ap_base_page_link(); } add_filter('login_redirect', 'my_redirect_to_ap_base_page');
Dima Stefantsov commented
Thank you, Rahul!
Rahul Aryan commented
theme functions.php
Chris Rex (Buyer) commented
How would the function look like if I would like to redirect the user to the home page and not the base page?
Tarrence (Buyer) commented
I made a functions.php file in my child theme & entered the hook
now i get page distortion & login doesn’t work
Kumar (AnsPress Support) commented
@chris Please chnage ap_base_page_link() to home_url(‘/’).
@Tarrence This hook has nothing to do with styles unless there is something missing. Please give us gist link to your functions.php
Chris Rex (Buyer) commented
Many thanks Kumar.
Kumar (AnsPress Support) commented
@Tarrence, its look like you have added your code before <?php tag. Please add it at the end of file.
Tarrence (Buyer) commented
I added tag to child theme thanks
In any file is added to that?