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/game
A compilation of items related to gamification add-ons.

Codex / mycred/game

mycred_all_scratch_cardsShortcode

This shortcode will render all active scratch card sets that you currently have installed on your website

mycred_lotteriesShortcode

This shortcode allows you to display a given number of lotteries currently setup on your website.

mycred_lotteryShortcode

This shortcode allows you to display a specific lottery in your post/page content.

myCRED_LotteryClass

The myCRED_Lottery class handles all lottery related information.

mycred_lottery_jackpotShortcode

This shortcode allows you to show a given lotteries current jackpot.

mycred_lottery_quickpickShortcode

This shortcode allows quick purchases of lottery entries with or without a custom price.

mycred_lottery_resultsShortcode

This shortcode allows you to show past results for a specific lottery in your post/page content.

mycred_lottery_winningsShortcode

This shortcode allows you to show how many points users can win for the nominated lottery.

mycred_lotto_payout_typeFilter

This filter allows you to change what point type you want users to be paid out in when playing a lottery.

mycred_lotto_times12Filter

This filter allows you to adjust the available times a lottery can be scheduled using the 12 hour system. This filter is used by the drop-down menus for the lottery schedules.

mycred_lotto_times24Filter

This filter allows you to adjust the available times a lottery can be scheduled using the 24 hour system.

mycred_scratch_card_templatesFilter

This filter allows you to add, replace or remove templates for the Scratch Card add-on.

mycred_scratch_cardsShortcode

Renders the scratch card add-ons play field where users can buy and scratch cards.

mycred_scratch_cards_remainingShortcode

Shows the remaining cards in a given scratch card set.

mycred_scratch_everyonewinsFilter

This filter allows you to create scratch card sets where all cards are winners.

mycred_scratch_historyShortcode

This shortcode filters the mycred_history shortcode to show all the times a user has won playing scratch cards.

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