Redirect registration and logic page

5.25K viewsUpdates
1

Hi Rahul,

How do I avoid anspress to follow wp-login.php login page. I have created my own login and registration page. How do I redirect anspress to it

deleted answer

I have a similar issue here. Could hard code it, but would rather do it with a function or hook.

0

Hello,

AnsPress is using inbuilt WP functions for getting login and registration link. You must use proper hooks for adding your custom login page.

Check this functions:

wp_registration_url

wp_login_url

commented on answer

Thanks Rahul – perfect.

Hello Rahul, I am using Anspress in a subsite of WordPress Multisite, and only allow user register account in a subsite, like register.oursite.com, in this situation, how should I do please? Should I add the above code into function file of our child theme? Or should I use the function of wp_registraion_url? thnaks. Alex

You are viewing 1 out of 2 answers, click here to view all answers.