mycred_label

Codex / mycred/core / Functions / mycred_label

Navigation:

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

Description

Returns the myCRED plugin label. The myCRED label is defined under the myCRED_LABEL constant, which this function retrieves and filters via the mycred_label filter before returning. This allows you to change the myCRED name shown around your WordPress admin area.

 

Usage

<?php echo mycred_label(); ?>

 

Parameters

  • strip tags (boolean)
    By default the label can contain html elements but if set to true, all HTML tags are stipped before the label is returned.

 

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