This function returns an associative array of references and the number of times each occur in your log. By default it will returns the top 5 most recurring references but can be changed to return all.
$all_reference_count = mycred_count_all_ref_instances( -1 );
- number (int) required
The number of references to count. Use -1 to return all references.
- order (string)
The order in which to return references. Use DESC for descending order (default) or ASC for ascending order.
- ctype (string)
Option to limit counting to a specific point type.
This function returns an associative array where keys are the reference and the value is the occurrence count.