jasonwyates
Member
Posted 1 year ago #
Hi,
I'm setting up a page, where I want to encourage our members to update their accounts through the Profile page in the backend of wordpress.. However, on a user's form, I'm seing the field:
Option Tree
Show Settings & Docs
..Is there any way to hide this from users? I'm afraid its just going to confuse people, since its not really clear what that means.
thanks!
http://wordpress.org/extend/plugins/option-tree/
baguapalm
Member
Posted 1 year ago #
Hi,
Same issue for me. Any idea on how to?
Thanks
Mo
imikedesigns
Member
Posted 1 year ago #
Did you guys have any luck with this?
baguapalm
Member
Posted 1 year ago #
Hi,
Nop...no news ever.
Sorry
imikedesigns
Member
Posted 1 year ago #
I'm not sure about the significance of having this show in the user profile, but here is a function to remove it.
Add to functions.php
/* Remove Option Tree From User Profile */
global $ot_admin;
remove_action( 'show_user_profile', array( $ot_admin, 'option_tree_extra_profile_fields' ) );
remove_action( 'edit_user_profile', array( $ot_admin, 'option_tree_extra_profile_fields' ) );
remove_action( 'personal_options_update', array( $ot_admin, 'option_tree_save_extra_profile_fields' ) );
remove_action( 'edit_user_profile_update', array( $ot_admin, 'option_tree_save_extra_profile_fields' ) );
baguapalm
Member
Posted 1 year ago #
Perfect :-)
Thanks a lot.