mycred_name

Codex / mycred/core / Functions / mycred_name

Navigation:

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

Description

Returns the singular or plural form of the name given to your points.

 

Usage

<?php echo mycred_name( $singular ); ?>

 

Parameters

  • singular (boolean)
    Returns singular form is set to true (default) or plural if false.

 

Example

Example 1: Echo the plural form.

echo 'Get 10 ' . mycred_name( false );

 

Return

Returns a string or empty if names are not set.

Last edited March 5, 2016