get_usernumposts

The timeline below displays how wordpress function get_usernumposts has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.6

/**
 * Retrieves the number of posts a user has written.
 *
 * @since 0.71
 * @deprecated 3.0.0 Use count_user_posts()
 * @see count_user_posts()
 *
 * @param int $userid User to count posts for.
 * @return int Number of posts the given user has written.
 */
function get_usernumposts($userid)
{
    _deprecated_function(__FUNCTION__, '3.0.0', 'count_user_posts()');
    return count_user_posts($userid);
}

WordPress Version: 4.5

/**
 * Retrieves the number of posts a user has written.
 *
 * @since 0.71
 * @deprecated 3.0.0 Use count_user_posts()
 * @see count_user_posts()
 *
 * @param int $userid User to count posts for.
 * @return int Number of posts the given user has written.
 */
function get_usernumposts($userid)
{
    _deprecated_function(__FUNCTION__, '3.0', 'count_user_posts()');
    return count_user_posts($userid);
}

WordPress Version: 4.4

/**
 * Number of posts user has written.
 *
 * @since 0.71
 * @deprecated 3.0.0 Use count_user_posts()
 * @see count_user_posts()
 */
function get_usernumposts($userid)
{
    _deprecated_function(__FUNCTION__, '3.0', 'count_user_posts()');
    return count_user_posts($userid);
}

WordPress Version: 3.7

/**
 * Number of posts user has written.
 *
 * @since 0.71
 * @deprecated 3.0.0
 * @deprecated Use count_user_posts()
 * @see count_user_posts()
 */
function get_usernumposts($userid)
{
    _deprecated_function(__FUNCTION__, '3.0', 'count_user_posts()');
    return count_user_posts($userid);
}