Notifications
Clear all

Script [Solved] How to disable user Title section

4 Posts
3 Users
1 Likes
211 Views
forummember
Posts: 117
Topic starter
(@forummember)
Estimable Member
Joined: 1 year ago

Hi, I cannot find the setting on how to disable the user "Title" section.

See the attached email for reference.

 

3 Replies
VereK
Posts: 482
(@verek)
Honorable Member
Joined: 6 years ago

@forummember

There is no setting for that IIRC. You can however disable it css with {pointer-events: none;} using the applicable selector

Robert
Posts: 10478
Admin
(@robert)
Support Team
Joined: 8 years ago

Hi @forummember,

You should use this hook code in a PHP code snippet of the Code Snippets plugin or directly in the functions.php file of your active theme:

add_filter('wpforo_member_after_init_fields', function ($fields){
	if( isset($fields['title']) ) unset($fields['title']);
	return $fields;
} );
1 Reply
forummember
(@forummember)
Joined: 1 year ago

Estimable Member
Posts: 117

Posted by: @robert

Hi @forummember,

You should use this hook code in a PHP code snippet of the Code Snippets plugin or directly in the functions.php file of your active theme:

add_filter('wpforo_member_after_init_fields', function ($fields){
	if( isset($fields['title']) ) unset($fields['title']);
	return $fields;
} );

 

Thank you @Robert, appreciated.