• Resolved Anonymous User 13302461

    (@anonymized-13302461)


    For some reason I am seeing this on the user profile.php page

    “User Login History
    Timezone
    This is used to convert date-time (e.g. login time, last seen time etc.) on the listing table.”

    Can we have option to not display it please? Seems strange that normal users can see this.

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Faiyaz Alam

    (@faiyazalam)

    No. There is no such option to hide “Timezone”.

    You can achieve this by modifying its core files which is not recommended.

    To remove the dropdown of timezone from user profile page, just remove these two following lines – 165 and 166:

    File:user-login-history/includes/class-faulh.php

    $this->loader->add_action('show_user_profile', $User_Profile, 'show_extra_profile_fields');
    $this->loader->add_action('edit_user_profile', $User_Profile, 'show_extra_profile_fields');

    To remove the timezone edit link from the listing page, just remove the following line –19:

    File: user-login-history/admin/partials/listing.php

    <div><p><?php echo $this->list_table->table_timezone_edit() ?></p></div>

    It is recommended that you should hide these sections i.e. dropdown and edit link by using your custom css instead modifying core files.

    • This reply was modified 5 years, 5 months ago by Faiyaz Alam.
Viewing 1 replies (of 1 total)
  • The topic ‘Hide from user profile options’ is closed to new replies.