Skip to:
Content
Pages
Categories
Search
Top
Bottom

remove website ,Location ,Occupation ,Interests in (register)


  • 62gr
    Member

    @62gr

    Hello

    I want remove website ,Location ,Occupation ,Interests In (register)

    Help me

Viewing 7 replies - 1 through 7 (of 7 total)

  • johnhiler
    Member

    @johnhiler


    62gr
    Member

    @62gr

    sorry but Its not working

    Is there another way ?

    For example, put in the code style.css ?


    johnhiler
    Member

    @johnhiler

    Did you paste the code into a my-profile-fields.php file, and move it into your my-plugins directory… then activate the plugin?


    62gr
    Member

    @62gr

    I paste this code

    into my-profile-fields.php file

    into my-plugins

    but its not working !!

    this code :

    <?php

    /*

    Plugin Name: My Profile Fields

    Description: My profile fields for my lovely forums

    Version 1.0

    */

    function my_profile_fields( $fields ) {

    /* This removes the Occupation profile field: */

    unset( $fields );

    /* This adds a new optional field called Favourite Band: */

    $fields = array(0,’Favourite Band’);

    /* This adds a new *required* field called State: */

    $fields = array(1,’State’);

    /* You must return the array at the end of the function: */

    return $fields;

    }

    add_filter( ‘get_profile_info_keys’, ‘my_profile_fields’ );

    ?>


    Mark Waterous
    Member

    @delayedinsanity

    Did you activate the plugin via your dashboard?


    johnhiler
    Member

    @johnhiler

    The Occupation field should have disappeared, and two new fields appeared… is that the case for you?


    62gr
    Member

    @62gr

    is that the case for you?

    no

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.