Notifications
Clear all

Script [Solved] About Me Problem

8 Posts
2 Users
0 Reactions
759 Views
Posts: 5
Topic starter
(@qurnaz)
Active Member
Joined: 3 years ago

Is there any way to remove the "About me" section on my account page?

7 Replies
Robert
Posts: 10549
Admin
(@robert)
Support Team
Joined: 8 years ago

Hi @qurnaz,

Please read this topic: https://wpforo.com/community/how-to-and-troubleshooting-2/remove-about-me-section-on-members-page/#post-51138

3 Replies
(@qurnaz)
Joined: 3 years ago

Active Member
Posts: 5
Robert
Admin
(@robert)
Joined: 8 years ago

Support Team
Posts: 10549

@qurnaz,

I meant this one: https://wpforo.com/community/how-to-and-troubleshooting-2/remove-about-me-section-on-members-page/#post-51146

Robert
Admin
(@robert)
Joined: 8 years ago

Support Team
Posts: 10549

That code removes the "about" field from the My Profile > Account tab.

Posts: 5
Topic starter
(@qurnaz)
Active Member
Joined: 3 years ago

@Robert I tried it, it didn't work

1 Reply
Robert
Admin
(@robert)
Joined: 8 years ago

Support Team
Posts: 10549

@qurnaz,

Ok, the code is updated. Please remove the old one from your website and use this one:

function remove_wpforo_about_fields( $fields ){
$remove_fields = array('about');
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', 'remove_wpforo_about_fields');

if it doesn't work, please show mere how are you adding the code and where you check it.

Posts: 5
Topic starter
(@qurnaz)
Active Member
Joined: 3 years ago

@Robert Thank you so much, it worked.