Oak
January 31, 2025, 12:34pm
1
I m looking for the variable names for new password & current password that will allow me to hide both fields, I have seen the php snippet that can aid me with removing certain fields in the user’s settings. however, I have not seen the variable names for both fields.
thanks for your help!
andrii
February 3, 2025, 9:52am
3
Hi,
If you mean the Current Password and New Password fields in the profile settings, then their field names are:
current_password
password
I hope this is helpful to you.
Oak
February 5, 2025, 6:53pm
4
What is the php snippet for that?
Revert to the snippet you mentioned in your first post and replace the field name by the ones andrii gave you.
unset(…)
1 Like
andrii
February 6, 2025, 11:03am
7
Hi,
Please use this PHP snippet:
add_filter(
'hivepress/v1/forms/user_update',
function( $form ) {
unset( $form['fields']['current_password'] );
unset( $form['fields']['password'] );
return $form;
},
1000
);
I hope this is helpful to you.
system
Closed
March 8, 2025, 12:27pm
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.