Linux 软件免费装

Downtack Lotteries

开发者 downtackcom
更新时间 2026年5月18日 07:39
PHP版本: 7.2 及以上
WordPress版本: 6.9
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

widget block usa lottery lotteries

下载

1.0.0

详情介绍:

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:

安装:

  1. Upload the downtack-lotteries folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Settings > Downtack.com - Lotteries to enter your API endpoint and API key.
  4. Click Sync API Data to fetch the initial dataset.
  5. Add the US Lotteries block via the Gutenberg editor, or the US Lotteries Widget via Appearance > Widgets.

屏幕截图:

  • Gutenberg block inspector controls.
  • Frontend output showing lottery results by state.

常见问题:

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.