mycred_get_users_rank

Codex / mycred/rank / Functions / mycred_get_users_rank

Description

This function will retrieve a given users current rank object or return an empty string if no rank was found.

Available since version 1.1

This function was completely re-written in version 1.7! This documentation is incorrect for older versions of myCRED.

Parameters

Param Type Required Description
$user_id int Yes

The numeric ID of the user.

$type string No

Option to retrieve the rank for a particular point type. Should not be used if you only have one point type or only one of your point types have ranks.

Usage Example

Last edited June 22, 2016