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
    Packages
    Filter by package
    1. mycred/api
    2. mycred/badge
    3. mycred/balance
    4. mycred/banking
    5. mycred/buddypress
    6. mycred/content
    7. mycred/core
    8. mycred/coupon
    9. mycred/email
    10. mycred/game
    11. mycred/hook
    12. mycred/log
    13. mycred/notice
    14. mycred/payment
    15. mycred/purchase
    16. mycred/rank
    17. mycred/stats
    18. mycred/transfer
    19. mycred/twilio
    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
Package: mycred/badge
A compilation of items related to Badges via the Badges add-on.

Codex / mycred/badge

mycred_assign_badgeFunction

This function assigns a given badge to all users that meet the set requirements.

mycred_assign_badge_to_userFunction

This function assigns a given badge and badge level to a specific user. It is used by other badge assignment functions to connect a badge with a user.

myCRED_BadgeObject

The badge object holds the badge levels, each levels requirements and badge images.

mycred_badge_imageFilter

This filter allows you to adjust the badge image element before it is rendered.

mycred_badge_level_reachedFunction

This function checks if a user has earned a particular badge and if they have, the level they have reached.

mycred_badge_user_valueFilter

This filter allows you to adjust the value that badges add-on saves when a user earns a new badge / badge level.

mycred_badgesShortcode

This shortcode returns all published badges setup via the Badge add-on.

mycred_count_users_with_badgeFunction

This function counts the number of users that has a given badge with the option to count badge level.

mycred_count_users_without_badgeFunction

This function counts the number of users that has not earned a given badge.

mycred_display_badge_requirementsFunction

This function will return the requirements you set for a particular badge in readable format.

mycred_display_users_badgesFunction

This function renders a list of all the badges a give user has earned.

mycred_get_badgeFunction

This function returns the myCRED Badge Object for a given badge ID.

mycred_get_badge_idsFunction

This function returns an array of published badge IDs.

mycred_get_badge_referencesFunction

This function will return an associative array of references and badge IDs that exists on your website.

mycred_get_users_badgesFunction

This function returns an array badge IDs that a given user has earned.

mycred_my_badgesShortcode

This shortcode returns the current logged in users earned badges, if there is any.

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