mycred_get_rank_id_from_title

Codex / / Functions / mycred_get_rank_id_from_title

Navigation:

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

Description

Retrieves the rank ID from a rank title.

 

Usage

echo 'Your rank id is: ' . mycred_get_rank_id_from_title( 'Newbie' );

 

Parameters

  • title (string) Required
    Required Rank title.

 

Return

  • The rank ID if rank is found.
  • NULL if rank is not found.
  • Empty string if user is excluded from using myCRED

Last edited July 2, 2014