AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

Micro-tuto how to make the SOCIAL NETWORKS section disappear from the member profile

2 Posts
2 Users
1 Reactions
791 Views
Posts: 7
 314r
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@314r)
Active Member
Joined: 12 months ago
[#62478]

Reference code

I modified the code given here with the new 2025 social networks, but the Social Networks label still appeared on the profile page.
The modified code = Paste at the end of the functions.php file in the wordpress wp-includes folder

/** faire disparaitre le panneau sociaux des profils utilisateurs **/
function my_custom_account_fields( $fields ){
    $remove_fields = array('facebook', 'linkedin', 'instagram', 'vkontakte', 'twitter', 'youtube', 'telegram', 'skype');
    if( !empty($fields) ){
        foreach( $fields as $r => $rows ){
            foreach( $rows as $c => $cols ){
                foreach( $cols as $f => $field ){
                    if( $field && in_array($field, $remove_fields) ){
                        unset($fields[$r][$c][$f]);
                    }
                }
            }
        }
    }
    return $fields;
}
add_filter( 'wpforo_get_account_fields', 'my_custom_account_fields');

 

To make the Social Networks mention disappear, here is the code to place in
forum settings/colors and styles
in the section: Custom CSS code

 

.wpf-field > div.wpf-label {display:none;}

I'm sharing in a friendly way to refresh the information and keep the method up to date, because @Robert method works when adapted.

Pierre

 Capture decran le 2025 05 03 a 08.37.32

1 Reply
Sofy
Posts: 5777
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sofy)
Support Team
Joined: 8 years ago

Hi,

Alternative solution.

You can use the "wpForo – User Custom Fields" addon. The wpForo User Custom Fields addon has all the necessary functions and features for creating a powerful online community and membership site. You can create custom Registration form with custom fields, add custom fields in User Profile system and in Members Search form

For more information, please visit: https://gvectors.com/product/wpforo-user-custom-fields/


Reply
Share: