Notifications
Clear all

Script [Solved] How to disable user Title section

4 Posts
3 Users
1 Reactions
390 Views
forummember
Posts: 124
Topic starter
(@forummember)
Estimable Member
Joined: 2 years 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: 522
(@verek)
Honorable Member
Joined: 7 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: 10549
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: 2 years ago

Estimable Member
Posts: 124

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.