• mtgagents2021

    (@mtgagents2021)


    Hi,

    I asked for assistance before on removing the password menu item on the edit account page and although I appreciate you did reply, It didn’t actually help as when I went to customize account-tabs.php there is nothing in there to actually remove or alter and any code I found online that may fix the problem didn’t do anything.

    So would it be possible if you could provide me the code that works for your plugin that will remove the change password menu item from the edit account page please ?

    Original Post:
    Hi,

    For security reasons we need to disable/remove the change password section on the edit account page.

    Is this possible and how do we do that?

    Basically dont want logged in users being able to change their issued password.

    Thanks

    Viewing 3 replies – 1 through 3 (of 3 total)
    Plugin SupportMark Kevin (@mkesteban08)
    1 week, 4 days ago
    Hey @mtgagents2021 ,

    I’d recommend removing it from the template file.

    You can read more about how to edit template files from this link- https://docs.wpusermanager.com/article/87-templates-customization the template file you should edit is account-tabs.php

    I hope that this could help ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Mark Kevin

    (@mkesteban08)

    Hi @mtgagents2021 ,

    You can proceed in using this snippet to hide the password section from the account page:

    function wpum_profile_about_profile_tab( $tabs ) {
    unset( $tabs[‘password’] );

    return $tabs;
    }
    add_filter( ‘wpum_get_account_page_tabs’, ‘wpum_profile_about_profile_tab’, 100 );

    You can add this in your theme’s function.php file.
    I hope that this could help and please let me know if you have other questions.

    Thread Starter mtgagents2021

    (@mtgagents2021)

    Worked perfect. Thank you soo much .. Really appreciate the help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable Password Section on Profile’ is closed to new replies.