Àpèjúwe
Downtack Lotteries connects to a configurable API endpoint to retrieve US lottery results and jackpot data, then displays them on your site using a flexible Gutenberg block or classic widget.
Features:
- Displays lottery results organized by state or by game.
- Shows winning numbers, current jackpot, next draw jackpot, and next draw date.
- Supports filtering by specific states and/or games.
- Option to group multiple plays under a single game heading.
- Full custom HTML template with placeholders (
{game_name},{numbers},{jackpot}, etc.). - Conditional template tags:
[if placeholder]...[/if placeholder]. - Iterative template tag:
[plays]...[/plays]to loop over multiple draws. - Custom CSS per widget/block instance.
- Optional bottom HTML area per widget/block instance.
- Configurable date format, jackpot decimal places, thousands separator, and decimal separator.
- Automatic data synchronization via WP-Cron (every 5 minutes).
- Manual sync button in the plugin settings.
External services
This plugin connects to an API to obtain lottery results, itÌtumọ̀ Yorùbá: ’s needed to show updated information in the included widget.
The service is provided by “Downtack.com”: terms of use.
Àwọn àwòrán ìbòjú
Àwọn ìdí
Plugin yìí pèsè 1 ìdí.
- Downtack Lotteries
Ìgbéwọlẹ̀
- Upload the
downtack-lotteriesfolder to the/wp-content/plugins/directory. - Activate the plugin through the Plugins menu in WordPress.
- Go to Settings > Downtack.com Ìtumọ̀ Yorùbá: – Lotteries to enter your API endpoint and API key.
- Click Sync API Data to fetch the initial dataset.
- Add the US Lotteries block via the Gutenberg editor, or the US Lotteries Widget via Appearance > Widgets.
FAQ
-
Where do I get an API key?
-
You need an account at Downtack.com to obtain an API endpoint and key.
-
How often is the lottery data refreshed?
-
Data is automatically fetched from the API every 5 minutes via WP-Cron. You can also trigger a manual sync at any time from the plugin settings page.
-
Can I customize how results are displayed?
-
Yes. Each block or widget instance supports a custom HTML template with data placeholders. You can also apply custom CSS per instance.
-
What placeholders are available in the custom template?
-
{game_name}— Name of the lottery game.{play_name}— Type of draw/play.{draw_date}— Date of the last draw.{numbers}— HTML block of winning numbers.{jackpot}— Current jackpot amount.{next_draw_jackpot}— Estimated next jackpot.{next_draw_date}— Date of the next draw.
Wrap content in
[if placeholder]...[/if placeholder]to show it only when the value is non-empty. Wrap play rows in[plays]...[/plays]to iterate over multiple draws.
Àwọn àgbéyẹ̀wò
Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.
Àwọn Olùkópa & Olùgbéejáde
“Downtack Lotteries” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.
Àwọn OlùkópaTúmọ̀ “Downtack Lotteries” sí èdè rẹ.
Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?
Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.


