Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do I remove the website field from Registration form?

  • @danbbpress

    Participant

    Lately I’ve been having problems with people signing up just to include some spammy sites with their profile. I want to remove the Website field altogehther from the Registration form. I don’t know how to do this – I looked in the register.php file but couldn’t find the line I should remove (I tried removing <?php do_action(‘extra_profile_info’, $user); ?> but nothing happens. Anyone know how to do this?

    Thanks.

    Dan

Viewing 7 replies - 1 through 7 (of 7 total)
  • @tomdebruin

    Participant

    the easiest way to deal with this may be to add a rel=”nofollow” to user urls.

    Have a look at this:

    https://bbpress.org/forums/topic/add-nofollow-to-links#post-4294

    @danbbpress

    Participant

    Thanks Tom. Still, I would rather remove the website field – this way spammers won’t even sign up (hopefully).

    @sambauers

    Participant

    This code used as a plugin should do it.

    <?php
    /*
    Plugin Name: Kill URL
    Description: Kills URL field in profile
    */

    function kill_url_in_profile_keys( $keys )
    {
    unset( $keys['user_url'] );
    return $keys;
    }

    add_filter( 'get_profile_info_keys', 'kill_url_in_profile_keys' );

    ?>

    @danbbpress

    Participant

    Thanks Sam. This works great:)

    Dan

    @heatmyhome

    Participant

    Hi

    Novice here.

    Where exactly do I put the code above?

    Your help appreciated.

    @yolandal

    Participant

    I also would like to know the answer to the last question…

    @midaster1

    Participant

    I also would like to also know about answer of this question.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar