Returns an associative array of all published ranks in descending order.
$ranks = mycred_get_ranks( 'draft' ); echo 'There are ' . count( $ranks ) . ' Draft Ranks';
- status (string)
Post Status to search for. Defaults to ‘published’.
- number (int)
Number of ranks to return. Defaults to all.
- order (string)
Option to select the order in which the ranks are returned. Defaults to Descending.
- Associative array with Rank ID as key and Rank Post object as value.
- Empty if no ranks found.