• Resolved adamvanbuskirk

    (@adamvanbuskirk)


    Hello,

    We have a very large site with many, many active users. When logging in as an Admin, the Most Frequent Logins meta query takes 5+ seconds and really slows down our initial admin panel load for admins. I want to continue updating the plugin, so I don’t want to customize the source code.

    Is there a way to turn this feature off, even if it’s something in functions.php? Below is the code in question – I basically want to change the true flag to false.

    $show_widget = apply_filters( ‘when_last_login_show_admin_widget’, true );

    Thanks,

    Adam

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi Adam,

    Thanks for reaching out to When Last Login, I’m sorry to hear you have faced some issues here.

    To disable this widget, you may add the following code snippet to your site via a custom plugin, code snippet plugin or child theme:

    add_filter( 'when_last_login_show_admin_widget', '__return_false' );

    Thread Starter adamvanbuskirk

    (@adamvanbuskirk)

    No issues, we just have a huge site. I love the plugin. This is perfect and exactly what I was looking for, thanks!

    Plugin Author Andrew Lima

    (@andrewza)

    Thanks! Glad I was able to help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Most Frequent Logins Box in Admin Dashboard’ is closed to new replies.