Demo entry 2699939

Test email

   

Submitted by anonymous on Sep 17, 2015 at 21:56
Language: PHP. Code size: 383 Bytes.

<?php

function get_authors_registered_after($date, $number = 5)
{
    $results = array();
    $authors = get_users('who=authors');
 
    foreach ($authors as $author) {
        if ($author->user_registered > $date) {
            $results[] = $author;
        }
 
        if (count($results) >= $number) {
            break;
        }
    }
 
    return $results;
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).