{"id":302212,"date":"2026-05-17T23:33:28","date_gmt":"2026-05-17T23:33:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/downtack-lotteries\/"},"modified":"2026-05-17T23:30:51","modified_gmt":"2026-05-17T23:30:51","slug":"downtack-lotteries","status":"publish","type":"plugin","link":"https:\/\/ca.wordpress.org\/plugins\/downtack-lotteries\/","author":23483209,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"6.9.4","requires":"5.8","requires_php":"7.2","requires_plugins":null,"header_name":"Downtack Lotteries","header_author":"Downtack.com","header_description":"Fetches Lottery data and provides customizable widgets.","assets_banners_color":"","last_updated":"2026-05-17 23:30:51","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/downtack.com\/en","rating":0,"author_block_rating":0,"active_installs":0,"downloads":49,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":{"1.0.0":{"tag":"1.0.0","author":"downtackcom","date":"2026-05-17 23:30:51"}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":{"downtackcom\/lotteries":{"name":"downtackcom\/lotteries","title":"Downtack Lotteries"}},"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3534922,"resolution":"1","location":"assets","locale":"","width":1597,"height":885},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3534922,"resolution":"2","location":"assets","locale":"","width":1508,"height":825},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3534922,"resolution":"3","location":"assets","locale":"","width":1600,"height":821}},"screenshots":{"1":"Plugin settings page with API configuration and documentation.","2":"Gutenberg block inspector controls.","3":"Frontend output showing lottery results by state."}},"plugin_section":[],"plugin_tags":[1220,263295,21255,3527,162],"plugin_category":[43],"plugin_contributors":[263296],"plugin_business_model":[],"class_list":["post-302212","plugin","type-plugin","status-publish","hentry","plugin_tags-block","plugin_tags-lotteries","plugin_tags-lottery","plugin_tags-usa","plugin_tags-widget","plugin_category-customization","plugin_contributors-downtackcom","plugin_committers-downtackcom"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/downtack-lotteries.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/downtack-lotteries\/assets\/screenshot-1.png?rev=3534922","caption":"Plugin settings page with API configuration and documentation."},{"src":"https:\/\/ps.w.org\/downtack-lotteries\/assets\/screenshot-2.png?rev=3534922","caption":"Gutenberg block inspector controls."},{"src":"https:\/\/ps.w.org\/downtack-lotteries\/assets\/screenshot-3.png?rev=3534922","caption":"Frontend output showing lottery results by state."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p><strong>Features:<\/strong><\/p>\n\n<ul>\n<li>Displays lottery results organized by state or by game.<\/li>\n<li>Shows winning numbers, current jackpot, next draw jackpot, and next draw date.<\/li>\n<li>Supports filtering by specific states and\/or games.<\/li>\n<li>Option to group multiple plays under a single game heading.<\/li>\n<li>Full custom HTML template with placeholders (<code>{game_name}<\/code>, <code>{numbers}<\/code>, <code>{jackpot}<\/code>, etc.).<\/li>\n<li>Conditional template tags: <code>[if placeholder]...[\/if placeholder]<\/code>.<\/li>\n<li>Iterative template tag: <code>[plays]...[\/plays]<\/code> to loop over multiple draws.<\/li>\n<li>Custom CSS per widget\/block instance.<\/li>\n<li>Optional bottom HTML area per widget\/block instance.<\/li>\n<li>Configurable date format, jackpot decimal places, thousands separator, and decimal separator.<\/li>\n<li>Automatic data synchronization via WP-Cron (every 5 minutes).<\/li>\n<li>Manual sync button in the plugin settings.<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>This plugin connects to an API to obtain lottery results, it's needed to show updated information in the included widget.\nThe service is provided by \"Downtack.com\": <a href=\"https:\/\/downtack.com\/en\/wp-terms-of-use.html\">terms of use<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>downtack-lotteries<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress.<\/li>\n<li>Go to <strong>Settings &gt; Downtack.com - Lotteries<\/strong> to enter your API endpoint and API key.<\/li>\n<li>Click <strong>Sync API Data<\/strong> to fetch the initial dataset.<\/li>\n<li>Add the <strong>US Lotteries<\/strong> block via the Gutenberg editor, or the <strong>US Lotteries Widget<\/strong> via <strong>Appearance &gt; Widgets<\/strong>.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"where%20do%20i%20get%20an%20api%20key%3F\"><h3>Where do I get an API key?<\/h3><\/dt>\n<dd><p>You need an account at <a href=\"https:\/\/downtack.com\/en\">Downtack.com<\/a> to obtain an API endpoint and key.<\/p><\/dd>\n<dt id=\"how%20often%20is%20the%20lottery%20data%20refreshed%3F\"><h3>How often is the lottery data refreshed?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"can%20i%20customize%20how%20results%20are%20displayed%3F\"><h3>Can I customize how results are displayed?<\/h3><\/dt>\n<dd><p>Yes. Each block or widget instance supports a custom HTML template with data placeholders. You can also apply custom CSS per instance.<\/p><\/dd>\n<dt id=\"what%20placeholders%20are%20available%20in%20the%20custom%20template%3F\"><h3>What placeholders are available in the custom template?<\/h3><\/dt>\n<dd><ul>\n<li><code>{game_name}<\/code> \u2014 Name of the lottery game.<\/li>\n<li><code>{play_name}<\/code> \u2014 Type of draw\/play.<\/li>\n<li><code>{draw_date}<\/code> \u2014 Date of the last draw.<\/li>\n<li><code>{numbers}<\/code> \u2014 HTML block of winning numbers.<\/li>\n<li><code>{jackpot}<\/code> \u2014 Current jackpot amount.<\/li>\n<li><code>{next_draw_jackpot}<\/code> \u2014 Estimated next jackpot.<\/li>\n<li><code>{next_draw_date}<\/code> \u2014 Date of the next draw.<\/li>\n<\/ul>\n\n<p>Wrap content in <code>[if placeholder]...[\/if placeholder]<\/code> to show it only when the value is non-empty. Wrap play rows in <code>[plays]...[\/plays]<\/code> to iterate over multiple draws.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Fetches US Lottery data from an external API and displays it via a customizable Gutenberg block and classic widget.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/302212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=302212"}],"author":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/downtackcom"}],"wp:attachment":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=302212"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=302212"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=302212"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=302212"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=302212"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=302212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}