get_the_post_thumbnail." />get_the_post_thumbnail." />

mycred_get_rank_logo

Codex / / Functions / mycred_get_rank_logo

Navigation:

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

Description

Retreves a given ranks logo (featured image). Uses get_the_post_thumbnail.

 

Usage

echo mycred_get_rank_logo( 'Newbie' );

 

Parameters

  • rank_id (int|string) Required
    Either the rank ID or rank title.
  • size (string|array)
    The logo size to return. Supports custom image sizes that were added with add_image_size. Defaults to ‘post-thumbnail’. For more information on available sizes please consult the WordPress Codex.
  • attr (string|array)
    Optional logo image attributes. For more information on available sizes please consult the WordPress Codex.

 

Return

Returns either the logo HTML image element or an empty string if no logo is set.

Last edited July 2, 2014