Skip to content

Instantly share code, notes, and snippets.

View PlanetHacx's full-sized avatar

Ashish Sharma PlanetHacx

View GitHub Profile
@chrisblakley
chrisblakley / active_users_metabox.php
Last active February 12, 2022 10:11
Get data about active WordPress users on your site as well as list when they were last online.
<?php
/*==========================
This snippet shows how to add an active user count to the WordPress Dashboard.
Copy these contents to functions.php
===========================*/
//Active Users Metabox
add_action('wp_dashboard_setup', 'gearside_activeusers_metabox');
function gearside_activeusers_metabox(){