wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

Custom registration option  


byjillee
Posts: 2
(@byjillee)
New Member
Joined: 2 months ago

Hi, I'd like to require readers register as a free member on my site before they can leave a comment, do you have an option that would allow me to add a custom registration link that would take them to my account registration page? 

3 Replies
Asti
Posts: 1270
 Asti
Support
(@asti)
Support member
Joined: 3 years ago

Hi @byjillee,

Please read this FAQ: https://wpdiscuz.com/community/f-a-q/change-login-url/

Reply
2 Replies
byjillee
(@byjillee)
Joined: 2 months ago

New Member
Posts: 2

@asti

Thanks for your response, but I'm looking for a way to customize the Register link, I've already updated the Login link.

Reply
Asti
 Asti
Support
(@asti)
Joined: 3 years ago

Support member
Posts: 1270

@byjillee,

You can use the hook provided below:

add_filter("wpdiscuz_login_link", function ($login) {
return $login . " or <a href='your_custom_registration_link'> register</a>" ;
});

Put this hook code in the WordPress active theme functions.php file (more information how to add insert custom code):

Don't forget to change the red marked value, before using.

In this case you'll see the "login or register" phrase (with appropriate links) above the comment form.

Reply
Share: