mycred_count_all_ref_instances

Codex / mycred/log / Functions / mycred_count_all_ref_instances

Navigation:

  1. Description
  2. Usage
  3. Parameters
  4. Return

Description

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.

Usage

$all_reference_count = mycred_count_all_ref_instances( -1 );

Parameters

  • 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.

Return

This function returns an associative array where keys are the reference and the value is the occurrence count.

Last edited March 5, 2016