Categories
How It Is How To

Recently Registered

For Single Site WordPress Only – List the 25 most recently registered users to your site.

This plugin adds a new, sortable, column to the users lists, which shows the date and time they registered.

Primarily useful for single site (which doesn’t show this at all), on Multisite Networks it adds the user’s registration info for all individual sites.

Privacy Notes

This plugin does not track any additional data other than what WordPress natively collects upon registration. It just makes the data visble.

Download

Latest version: Download Recently Registered v3.4.3 [zip]

Installation

No special instructions.

FAQ

Q. Why is the field blank?
A. Because some other plugins are _doing_it_wrong(). When they created their column, they forgot to have the filter return the previous content, if it’s not their column, so it’s removing it. Since my plugin’s doing it right, I gave it a higher priority to stop that from happening in most cases.

Q. Can I change the date formatting?
A. Not at this time. The code is hardcoded because so is WordPress and I wanted to keep it matching as much as possible. That means until WP changes how it formats that column, I’m not changing the plugin.

Q. Does this work on MultiSite?
A. Yes it does. When Network Activated, it adds a column on each sub-site’s user list to show registration date.

Q. Why doesn’t it show registration time on Multisite?
A. Because Multisite doesn’t show that by default. If you set the request mode from list to excerpt, it’ll show the time. It’s a bit of a complicated way around it, but this stackexchange thread explains it in detail.

Q. Does this work on BuddyPress?
A. Yes!

Q. Why doesn’t this check for Stop Forum Spam anymore?
A. Overlap. After a lot of testing, I determined that Ban Hammer does this better and cleaner. So if you need that sort of thing, use the right tool.

Q. Why did you remove the separate page?
A. Because it was redundant. If you can sort it all on one page, why not do that?

Changelog

3.4.3

  • 11 January 2016, by Ipstenu
  • Public functions, what’s your function? (This is not a functional change, just a cleanup)

3.4.2

  • 16 September 2015, by Ipstenu
  • Fixing errant .= from renaming functions. (hattip sintro)

3.4.1

  • 05 May 2015, by Ipstenu
  • Typo preventing activation on singlesite SIGH

3.4

  • 05 May 2015, by Ipstenu
  • Now works for Multisite so you can see the registrations per-site
  • Changed formatting to match Multisite’s display
  • Network only if on Multisite (I think only the super-admins should decide this one)

Screenshots

  1. Sample output

    Sample output

14 replies on “Recently Registered”

Hi there. Thanks for the plugin. The dates do not show under the “Registered” column and the Recently Registered link does not appear in the left column of the administration page. Is this because there are compatibility issues with WordPress 3.2? Or what do you think could be the problem? I appreciate your help!

The link is gone (has been for a couple version). It’s now just … on and shows up in the Users lists.

I see the dates just fine on my sites (three on separate servers) that are running 3.2. Checked on both Single Site and MultiSite.

Was it working before? Have you tested turning off other plugins?

Same answer:

I see the dates just fine on my sites (three on separate servers) that are running 3.3 AND 3.4. Checked on both Single Site and MultiSite.

Was it working before? Have you tested turning off other plugins?

I’m looking through the code, and I think the conflict is with “manage_users_custom_column”, which appears in both sets of code. I don’t know enough about hooks and filters to understand how these work.

Ipstenu,

I made some progress: I added the following code to my functions.php file, and it works without conflict:


// insert the last login date for each user
function insert_last_login( $login ) {
global $user_id;
$user = get_userdatabylogin( $login );
update_user_meta( $user->ID, 'last_login', gmdate( 'Y-m-d H:i:s' ) );
}
add_action( 'wp_login', 'insert_last_login' );
// add a new "Last Login" user column
function add_last_login_column( $columns ) {
$columns['last_login'] = __( 'Last Login', 'last_login' );
return $columns;
}
add_filter( 'manage_users_columns', 'add_last_login_column' );
// add the "Last Login" user data to the new column
function add_last_login_column_value( $value, $column_name, $user_id ) {
$user = get_userdata( $user_id );
if ( 'last_login' == $column_name && $user->last_login )
$value = date( 'm/d/Y g:ia', strtotime( $user->last_login ) );
return $value;
}
add_action( 'manage_users_custom_column', 'add_last_login_column_value', 10, 3 );

I found this on the AppThemes website.

Cheers!

The manage users column isn’t the conflict, I think it’s the filter name itself, which I can easily change to make more individual 🙂

Or not…

public function manage_users_custom_column( $empty, $column_name, $user_id )

I think he’s actually MAKING a function that happens to already exist… I’m just calling it. That would cause issues.

Great plugin! It just works and helps keeping track who recently joined!
Found it by looking for a way to make the role column sortable. Would you know how to make the “Role” and “Posts” columns sortable too?

Comments are closed.