A free points management plugin for WordPress.
myCRED Logo
myCRED Logo
  • Membership New
  • Chapters
    • Chapter I – Introduction
    • Chapter II – Getting Started
    • Chapter III – Add-ons
    • Chapter IV – Premium Add-ons
    • Chapter V – For Developers
    • Chapter VI – Reference Guides
  • Categories
    • Actions
    • Classes
    • Constants
    • Filters
    • Functions
    • Objects
    • Shortcodes
    • Hooks
    • Template Tags
  • Packages
    • mycred/api
    • mycred/badge
    • mycred/balance
    • mycred/banking
    • mycred/content
    • mycred/core
    • mycred/coupon
    • mycred/email
    • mycred/game
    • mycred/log
    • mycred/notice
    • mycred/payment
    • mycred/purchase
    • mycred/rank
    • mycred/transfer
  • Store
  • Download
    Categories
    Filter by category
    1. Actions
    2. Classes
    3. Filters
    4. Functions
    5. Hooks
    6. Objects
    7. Shortcodes
    8. Template Tags
    Chapters
    Documentation
    1. Chapter I - Introduction
    2. Chapter II - Getting Started
    3. Chapter III - Add-ons
    4. Chapter IV - Premium Add-ons
    5. Chapter V - For Developers
    6. Chapter VI - Reference Guides
Category: General

Codex / General

%admin_email%Tag

This template tag returns your websites’ email address.

Navigation:

  1. Description
  2. Usage
  3. Hooks
  4. Add-ons

Description

This template tag returns your websites’ email address. This is the email address used on the General Settings page in WordPress. Added in version 1.1

 

Usage

Email Notices

This email was sent from %blog_name% - %site_info%

Output

This email was sent from myCRED - a free WordPress points management plugin

 

Hooks

This template tag can be used in any hook that accepts General template tags.

 

Add-ons

This template tag can be used with the following add-ons:

  • Email Notices
%blog_info%Tag

This template tag returns your websites’ tagline.

Navigation:

  1. Description
  2. Usage
  3. Hooks
  4. Add-ons

Description

This template tag returns your websites’ tagline. Returns an empty string if tagline is not used. Added in version 1.1

 

Usage

Email Notices

This email was sent from %blog_name% - %site_info%

Output

This email was sent from myCRED - a free WordPress points management plugin

 

Hooks

This template tag can be used in any hook that accepts General template tags.

 

Add-ons

This template tag can be used with the following add-ons:

  • Email Notices
%blog_name%Tag

This template tag returns your websites’ name.

Navigation:

  1. Description
  2. Usage
  3. Hooks
  4. Add-ons

Description

This template tag returns your websites’ name. Added in version 1.1

 

Usage

Email Notices

This email was sent from %blog_name%

Output

This email was sent from myCRED

 

Hooks

This template tag can be used in any hook that accepts General template tags.

 

Add-ons

This template tag can be used with the following add-ons:

  • Email Notices
%blog_url%Tag

This template tag returns your websites’ URL.

Navigation:

  1. Description
  2. Usage
  3. Hooks
  4. Add-ons

Description

This template tag returns your websites’ URL. Added in version 1.1

 

Usage

Email Notices

This email was sent from <a href="%blog_url%">%blog_name%</a>

Output

This email was sent from <a href="http://mycred.me">myCRED</a>

 

Hooks

This template tag can be used in any hook that accepts General template tags.

 

Add-ons

This template tag can be used with the following add-ons:

  • Email Notices
%login_url_here%Tag

Returns the login URL with a redirection to the current page, to be used in HTML elements.

Navigation:

  1. Description
  2. Usage
  3. Hooks
  4. Add-ons

Description

Returns the login url with a redirection to the current page, to be used in HTML elements.

 

Usage

<a href="%login_url_here%" title="Click to Login">Login & Return</a>

 

Hooks

This template tag can be used in all hooks.

 

Add-ons

This template tag can be used with all add-ons.

%login_url%Tag

Returns the login URL without any redirection, to be used in HTML elements.

Navigation:

  1. Description
  2. Usage
  3. Hooks
  4. Add-ons

Description

Returns the login url without any redirection, to be used in HTML elements.

 

Usage

<a href="%login_url%" title="Click to Login">Login</a>

 

Hooks

This template tag can be used in all hooks.

 

Add-ons

This template tag can be used with all add-ons.

%logout_url_here%Tag

Returns the logout URL with redirection to the current page, to be used in HTML elements.

Navigation:

  1. Description
  2. Usage
  3. Hooks
  4. Add-ons

Description

Returns the logout url with redirection to the current page, to be used in HTML elements.

 

Usage

<a href="%logout_url_here%" title="Click to Logout">Logout & Return</a>

 

Hooks

This template tag can be used in all hooks.

 

Add-ons

This template tag can be used with all add-ons.

%logout_url%Tag

Returns the logout url without any redirection, to be used in HTML elements.

Navigation:

  1. Description
  2. Usage
  3. Hooks
  4. Add-ons

Description

Returns the logout url without any redirection, to be used in HTML elements.

 

Usage

<a href="%logout_url%" title="Click to Logout">Logout</a>

 

Hooks

This template tag can be used in all hooks.

 

Add-ons

This template tag can be used with all add-ons.

%num_members%Tag

This template tag returns the total number of registered members on your website.

Navigation:

  1. Description
  2. Usage
  3. Hooks
  4. Add-ons

Description

This template tag returns the total number of registered members on your website. Added in version 1.1

 

Usage

Email Notices

This email was sent from %blog_name% - %site_info%

Output

This email was sent from myCRED - a free WordPress points management plugin

 

Hooks

This template tag can be used in any hook that accepts General template tags.

 

Add-ons

This template tag can be used with the following add-ons:

  • Email Notices
%plural%Tag

Template tag returning the name of your points in plural form. For example: Points, Tokens, Credits. Adding an underscore at the beginning will return the name in lowercase.

Navigation:

  1. Description
  2. Usage
  3. Examples
  4. Hooks
  5. Add-ons

Description

Template tag returning the name of your points in plural form. For example: Points, Tokens, Credits. Adding an underscore at the beginning will return the name in lowercase.

 

Usage

%plural% or %_plural%

 

Examples

Example 1: Buy %_plural% now!

Buy tokens now!

Example 2: 10 %plural% for sending an invite.

10 Tokens for sending an invite.

 

Hooks

This template tag can be used in all hooks.

 

Add-ons

This template tag can be used with all add-ons.

%singular%Tag

Template tag returning the name of your points in singular form. For example: Point, Token, Credit etc.

Navigation:

  1. Description
  2. Usage
  3. Examples
  4. Hooks
  5. Add-ons

Description

Template tag returning the name of your points in singular form. For example: Point, Token, Credit etc. Adding an underscore at the beginning will return the name in lowercase.

 

Usage

%singular% or %_singular%

 

Examples

Example 1: Earn yourself a %_singular%!

Earn yourself a token!

Example 2: %singular% for logging in.

Token for logging in.

 

Hooks

This template tag can be used in all hooks.

 

Add-ons

This template tag can be used with all add-ons.

0

About myCred

myCred is a free, open-source and developer friendly points management tool for WordPress powered websites.

Download Rate Plugin

Documentation

  • Add-ons
  • Core Shortcodes
  • F.A.Q.
  • Tutorials
  • Third Party Plugins
  • Code Snippets

Support

  • Product Licenses
  • Customization
  • Support Forums
  • Plugin Changelog
  • Contact

Copyright 2013 - 2021 by WPExperts; All rights reserved. myCred is licensed under GPL 2.0

Terms & Conditions • Use of Cookies • Store Policy • Community Rules

Suggest Codex Example

You can submit suggestions for codex examples that you have available as a public gist. If you are a member on the mycred.me website, you can earn Tokens for each submission. To claim these Tokens, make sure you provide your mycred.me username.

Please make sure the example you submit is relevant and if you include documentation, it's provided in English.

logo
  • Membership New
  • Chapters
    • Chapter I – Introduction
    • Chapter II – Getting Started
    • Chapter III – Add-ons
    • Chapter IV – Premium Add-ons
    • Chapter V – For Developers
    • Chapter VI – Reference Guides
  • Categories
    • Actions
    • Classes
    • Constants
    • Filters
    • Functions
    • Objects
    • Shortcodes
    • Hooks
    • Template Tags
  • Packages
    • mycred/api
    • mycred/badge
    • mycred/balance
    • mycred/banking
    • mycred/content
    • mycred/core
    • mycred/coupon
    • mycred/email
    • mycred/game
    • mycred/log
    • mycred/notice
    • mycred/payment
    • mycred/purchase
    • mycred/rank
    • mycred/transfer
  • Store
  • Download