• Resolved pho3nyx

    (@pho3nyx)


    Hello, I noticed that your plugin add to the User Profile a new field:

    User Login History (Depreciated)
    Timezone

    This is used to convert date-time (e.g. login time, last seen time etc.) on the listing table.

    Is possible to disable it?

    Thanks in advantage for your answer

    • This topic was modified 4 years, 8 months ago by pho3nyx.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Faiyaz Alam

    (@faiyazalam)

    @pho3nyx currently there is no hook to disable it. But you can hide it using custom css.
    Hope it helps.

    Thread Starter pho3nyx

    (@pho3nyx)

    Hello Faiyaz, I hope you will add in the future this option, what css code I have to use to disable it?
    Thanks in advantage for your answer

    Plugin Author Faiyaz Alam

    (@faiyazalam)

    @pho3nyx You can put this code in your theme’s functions.php file at bottom:

    add_action('admin_head', 'custom_hide_faulh_timezone');
    
    function custom_hide_faulh_timezone() {
        global $pagenow;
    
        if (!in_array($pagenow, ['user-edit.php', 'profile.php'])) {
            return;
        }
        echo '<style>
        h3#faulh, table.faulh-form-table {
          display: none;
        } 
      </style>';
    }

    Let me know if any issue.

    Thread Starter pho3nyx

    (@pho3nyx)

    It works thanks ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable User Profile field’ is closed to new replies.