BuddyDev

Search

[Resolved] Force profile photo : Update metakey to 0

  • Participant
    Level: Enlightened
    Posts: 38
    Granmeh on #28286

    Hi Brajesh,

    I would like to update the meta_key ‘has_avatar’ to 0 when someone is deleting his profile picture for not displaying his profile on the member directory.

    Can you help me on this ?

    Granmeh

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #28293

    Hi Laurent/Granmeh

    Please change line 175 in the code from

    
    bp_delete_user_meta( $user_id, 'has_avatar' );
    

    to

    
    bp_update_user_meta( $user_id, 'has_avatar', 0 );
    

    That will do it.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved