Forums

OptionTree
Hide" option tree" from users on profile page (6 posts)

  1. 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/

  2. baguapalm
    Member
    Posted 1 year ago #

    Hi,

    Same issue for me. Any idea on how to?

    Thanks

    Mo

  3. imikedesigns
    Member
    Posted 1 year ago #

    Did you guys have any luck with this?

  4. baguapalm
    Member
    Posted 1 year ago #

    Hi,

    Nop...no news ever.

    Sorry

  5. 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' ) );
  6. baguapalm
    Member
    Posted 1 year ago #

    Perfect :-)

    Thanks a lot.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic