I have a certain condition in my code (if the user is visiting the page from a network range) and I can ask for this condition easily, let's say:
if ( $user_in_allowed_range)
What I want is to offer the registration button only to users who fulfill this condition, and other users should still be able to login.
Is there any way to do this in WordPress without hacking the core? An additional custom login form is not a solution as the original one is still available.
I found some hooks (
user_register …) and the theme function
wp_login_form() but they do not offer my needed feature.