mycred_get_rank

Codex / / Functions / mycred_get_rank

Navigation:

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

Description

Retrieves the rank object based on the rank name. Uses the mycred_get_rank filter.

 

Usage

$rank = mycred_get_rank( 'Newbie' );
echo 'Newbie rank ID: ' . $rank->ID;

 

Parameters

  • rank_title (string) Required
    Required Rank title. Uses get_page_by_title.

 

Return

  • The Rank Object if rank is found.
  • NULL if Rank could not be found.
  • Empty string if rank_title parameter is missing.

Last edited July 2, 2014