The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Custom registration...
 
Share:
Notifications
Clear all

[Solved] Custom registration option

4 Posts
2 Users
0 Reactions
2,341 Views
Posts: 2
Topic starter
(@byjillee)
New Member
Joined: 4 years 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: 7661
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi @byjillee,

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

Reply
2 Replies
(@byjillee)
Joined: 4 years 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: 7 years ago

Illustrious Member
Posts: 7661

@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: