Remove Google+ from profile settings

Community Forums Forums General Discussion Remove Google+ from profile settings

This topic is: resolved

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  tibor 1 year, 4 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #18934

    tibor
    Participant
    Post count: 20

    I noticed Genesis is adding a Google+ profile field to the profile page, but is there a hook available to remove it?

    Thanks in advance.

    • This topic was modified 1 year, 8 months ago by  tibor. Reason: typo
    • This topic was modified 1 year, 8 months ago by  tibor. Reason: typo
    #18941

    braddalton
    Participant
    Post count: 10254

    Here’s the function you need to remove
    [php]
    function genesis_user_contactmethods( $contactmethods ) {

    $contactmethods['googleplus'] = __( ‘Google+’, ‘genesis’ );

    return $contactmethods;

    }
    [/php]


    #18942

    tibor
    Participant
    Post count: 20

    Yep, I know :-) Question is how to do this in a Child Theme… I tried:

    remove_action('user_contactmethods', 'genesis_user_contactmethods');

    But that doesn’t work.

    #22365

    tibor
    Participant
    Post count: 20

    I have a client who would be very happy if there is an answer for this…anyone?

    #47284

    tibor
    Participant
    Post count: 20

    Found it:


    /** Remove Google+ field from profile */
    remove_filter( 'user_contactmethods', 'genesis_user_contactmethods' );

    #47298

    braddalton
    Participant
    Post count: 10254

    Thanks for that.

    You could also use:
    [php]
    remove_action( ‘user_contactmethods’, ‘genesis_user_contactmethods’ );
    [/php]


    #47300

    tibor
    Participant
    Post count: 20

    Indeed…weird thing is I did try that before, but it didn’t work then.. Must have made a typo or something.

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

You must be logged in to reply to this topic.