Please try this PHP snippet instead
add_filter(
'hivepress/v1/forms/user_update',
function( $form ) {
if(current_user_can('edit_posts')){
return $form;
}
unset($form['fields']['description']);
return $form;
},
1000
);
Please try this PHP snippet instead
add_filter(
'hivepress/v1/forms/user_update',
function( $form ) {
if(current_user_can('edit_posts')){
return $form;
}
unset($form['fields']['description']);
return $form;
},
1000
);