Lottery Add-on


Lottery Add-on

(14 customer reviews)


Allows to setup lotteries for users to win points.

This addon is not available anymore due to some legal issues.

OR Join membership club

Lottery Add-on


Gamify your WordPress website by offering lotteries for points!

The myCred Lottery add-on allows you to setup two types of lotteries where your users can enter and win points.

Pick a Winner!

You can select to draw one or more winners in a raffle type of lottery. Your users buy “entries” and receive a unique ticket number. When the lottery has been closed, x number of ticket numbers are drawn at random. The winners are paid either a lump sump of points or points based on a formula.

Winning Numbers

One of the most common lottery types where x number of winning numbers are drawn from a range. You can set the range, how many numbers to draw and how much points users win based on the number of correct picks.


  • Set how many winners to draw.
  • Set how many points each winner gets.
  • Option to allow purchase of one or multiple entries.


  • Set the number range.
  • Set how many numbers to draw.
  • Set how many points to give based on correct picks.
  • Optional Jackpot system.
Common Features
  • Option to schedule lotteries to run daily, weekly or monthly. Also includes the option to run the lottery manually.
  • Option to send custom email notifications for winners.
  • Easy management of lotteries via the admin area.
  • Option to set a minimum or maximum balance requirement to enter the lottery.
  • Option to exclude users based on role or ID from lottery.
  • Option to refund entries.

Fair Game Limitations

The lottery add-on while being customisable have certain intentional limitations in order to provide a fair game:

  • The random number generator is not customisable.
  • Administrators can not chose the winner or winning numbers of a lottery.
  • Lottery entries can not be altered. They can only be deleted or refunded.

  • Lottery entries can only be deleted / refunded while the lottery has started. Once the winner or winning numbers have been drawn, no further changes can be made.


Full Disclosure

The lottery add-on plugin is not encoded. Authorized personnel with a basic understanding of PHP can view the files and potentially manipulate them!

Installation Guide

  1. Unzip the attached zip file and upload the folder to your website’s plugin directly.
  2. Make sure you have myCred installed and setup.
  3. Enable the myCred Lottery plugin.
  4. Once enabled, a new menu will be available under “myCred” in your admin area called “Lotteries”.
  5. Before creating a lottery, make sure your websites Timezone is setup and correct! Otherwise, the schedule will be firing according to your server time which might not be the same as your local time! You can find your timezone settings on the “Settings” > “General” page.
  6. This add-on will check your time format and if you use AM/PM the lottery will also use AM/PM. Otherwise, it will default to the 24-hour system. (optional)
  7. Login to your myCred account here on
  8. Click “Your Licenses” and enter the domain name of the website where this add-on is used. Save. (If you do not do this, your plugin will never update itself when a new version is available).


How to setup a lottery

  1. Visit the “Lotteries” page under the “myCred” menu.
  2. Click “Create Lottery” in the top of the page.
  3. Just as with posts, start by giving your lottery a title and select your lottery “Type”. Before updating, also select your schedule. Choose either to run this lottery once, daily or weekly.
  4. Once you have entered in your dates and times, click “Save Draft”. Note that each state (start, close, draw and pay) must have a unique time. You can not draw winners and payout the same hour. This is so you can correct mistakes (if they happen) before each state change.
  5. When the lottery draft has been saved, 4 new meta boxes will be loaded.
  6. Start by setting up your lottery (The Setup Meta Box). By default, myCred will draw 5 winners / winning numbers. You can change this, but if you do, you must click “Update” for the Winnings section to update! myCred will save your lottery settings each time the edit page is re-loaded.
  7. Set your requirements for participating in this lottery.
  8. Set exclusions for this lottery.
  9. Adjust the templates used by the lottery.
  10. Save.
  11. Once you have all the settings according to your liking, you can publish the lottery though the “Activate Lottery” button.


How to show lotteries

Lotteries are shown on your website via the myCred lottery or myCred lotteries shortcodes. The myCred lottery shows a specific lottery while the myCred lotteries shortcode shows all published lotteries. You can find more information on how to use these shortcodes in the myCred Codex.


How to edit lotteries

You can edit lotteries just like any other custom post type in WordPress via your admin area. NOTE In the current version of the lottery add-on, you can not make changes to a lottery that is active! I will add this feature to the next version of the lottery add-on.

  1. Visit the myCred > Lotteries page.
  2. Select the lottery you want to edit and click on the lottery title.
  3. Edit the lottery and save your changes.



By default, you can set a fixed number of points to award winners. As of version 1.2, you can also use formulas to give points based on specific metrics. For example, you could set to payout a percentage of the total amount of points the user has paid to enter the lottery. The following keywords are available in formulas:

PAYMENTSRepresents the total amount of points paid to play this lottery.Pay 10 points plus 10% of the total amount paid into this lottery:

10 + ( PAYMENTS * 0.1 )
ENTRIESRepresents the total number of entries in the lottery.Pay 2 points per entry in the lottery as payout:

REFUNDSRepresents the total amount of points paid out in refunds for this lottery.Pay 10% of the total amount paid into this lottery minus any refunds there might have been:

Formulas are not mandatory if you prefer to pay out a given amount you can do so.


Note about formulas and testing

When testing, make sure you have enough entries/payments in the lottery for the payout to work. If you are for example use whole numbers for your points and the formula results in a value smaller then 1, the result will be interpreted as zero and no payout will occur. I recommend you set a high price or enter enough entries when testing to prevent this from occurring.

Product Changelog

Version 1.5

  • Resolve Quick pick entries ordering format.

Version 1.4

  • Compatible with WordPress 5.0.3.
  • NEW – Added support for myCred 1.8.
  • Tested with myCred 1.8.


Version 1.3

  • Added support for myCRED 1.8 with backward compatibility.
  • Tested up to WordPress 5.0.2


Version 1.2.4

  • TWEAK – Added support for WordPress 4.9
  • TWEAK – Added support for myCred 1.8
  • NEW – Added support for myCred customizations of shortcode names.


Version 1.2.3

  • FIX – When selecting to draw/pick more than 5 winners/numbers, the settings are not saved when the lottery is saved.
  • FIX – Updated the Math Evaluation script to the latest version to resolve certain installations where formulas did not payout.


Version 1.2.2

  • FIX – Updated language files.
  • FIX – Fixed PHP notice when editing lottery.
  • TWEAK – Slight adjustment to the admin style.


Version 1.2.1

  • FIX – If too few users play a lottery, the tickets are not refunded but instead drawn as winners.


Version 1.2

  • NEW – Support for monthly and manual schedules.
  • NEW – Re-design of the lottery editor.
  • NEW – Added new shortcode mycred_lottery_winnings.
  • TWEAK – Improved schedule process.
  • NEW – Option to award points based on formula with built-in formula evaluation for testing.
  • NEW – Option to set which point type to pay out.


Version 1.1.1

  • Fixed Bug #7 – Fixed schedule date issue showing server time and not local time set.
  • Fixed Bug #8 – Fixed issue with drawn winners getting saved twice causing results to show duplicate winners.
  • Fixed Bug #9 – The lottery add-on translates certain admin buttons.
  • Added new Winning Numbers Widget showing a given lotteries drawn numbers.
  • Hidden the Publish button to prevent lotteries from being published before a type and schedule is set. If a lottery is published before these details are saved, the lottery will fail.


Version 1.1

  • Fixed Bug #6 – Schedule is not working all the time. Rewrote the schedule.
  • Added option to manually add entries in lotteries.
  • Added next scheduled state in the lottery list.
  • Replaced the UL element used for the past winners with a table.
  • New mycred_lottery_jackpot shortcode to show a lotteries current jackpot.
  • New mycred_lottery_plays shortcode.


Version 1.0.3

  • Fixed Bug #5 – myCred Icon not visible when viewing lotteries or editing lotteries in the admin area.
  • Added several actions and filter hooks to allow customizations of payouts and participation.


Version 1.0.2

  • Fixed Bug #4 – Update button missing name causing lottery to re-set during edit
  • Adjusted lottery for myCred 1.3


Version 1.0.1

  • Fixed Bug #1 – Draw Winners are not paid out instead causes a fatal error.
  • Fixed Bug #2 – Past Winners are incorrectly parsed causing fatal error.


Version 1.0

  • Initial release
Demos are played using Chips, which is a demo currency and has no monetary value. When you register, you receive Chips automatically that in turn will allow you to play demos. Scratch Cards can not be played by visitors! You must be logged in to play.
[mycred_lottery id=”36335″]

Frequently Asked Questions

No questions found for this add-on.

14 reviews for Lottery Add-on

  1. Avatar

    Nathan Pinno

    Excellent add-on!A must for any owner wanting to draw in more members!

  2. Avatar


    Excellent plugin for all

  3. Avatar

    Sol Huebner

    Really great addon for myCRED

  4. Avatar


    Great add-on! Very easy to set-up and there are lots of possibilities. You can hold multiple lotteries, great for different ”types” of lotteries.

    Highly recommended plugin.

  5. Avatar

    Ashwin Rajgopal

    The price of the plugin is the only issue. Had some trouble in the beginning but it was fixed quickly through the forum and now I can offer high stakes lotteries and sweepstakes to my users.

  6. Avatar


    Until there is an update for the Lottery then it takes to much manual work.
    When the Lottery can be trusted to run every time then it will be a very great add-on.
    Problems :
    // The Lotteries cannot be trusted that the Lotteries are run on time.
    // The based on formula is not working. It does not pay out.
    // Pick number Lottery do not work if you add to many pick numbers or change to much.
    // There have not been any update in ages.

  7. Avatar


    perfekt plugin for a nice little gaming-site

  8. Avatar

    Aslan Guseinov

    Great add on, especially when using with all powerful features of myCRED.

  9. Avatar


    Well, not bad plugin … not bad, but the price is really to high for this …

  10. Avatar


    Excellent add-on!

  11. Avatar


    I like this add on. Very professionally coded and works just well!

  12. Avatar


    Would be perfect if there was a rollover feature and reporting win to user account to be claimed before paid

  13. Avatar


    We used in our website and are pleased with all products.
    I would suggest, list the winners by name or login.

  14. Avatar


    The lottery plugin is a great idea but when I tried to implement it, I found that my daily lotteries did not run reliably every day. Additionally, I do not agree with the practice of being charged for moving my license from one domain to another. By purchasing a license, I should be free to use it as a please on my domains and should not have to pay to switch domains. The $69 price point is not worth it in my opinion unless it can be used reliably.

Only logged in customers who have purchased this product may leave a review.

Minimum Requirements
  • WordPress 4.2
  • PHP 5.3
  • myCRED 1.6
  • 1.5