WinRocket Shortcodes
Embed any WinRocket element anywhere on your WordPress site โ product pages, landing pages, sidebars, or Elementor layouts โ with a single shortcode tag.
Using WinRocket Shortcodes
Drop any shortcode into any WordPress page, post, widget area, or Elementor block. They just work.
Copy the Shortcode
Find the shortcode you need on this page and click "Copy" to grab it.
Open Your Page Editor
Go to any page/post in WordPress or open your Elementor layout.
Paste into Shortcode Block
Add a "Shortcode" block (Gutenberg) or "Shortcode" widget (Elementor) and paste.
Publish & Preview
Save the page and preview. Your WinRocket element will appear exactly as designed.
Winner Reveal Shortcode
Embeds the animated winner reveal page on any WordPress page. Shows the winning ticket number, customer name, fireworks celebration, and a live countdown before the draw. Used as the dedicated "Winner Reveal" destination page.
Basic Usage
Free[wxg_winner_reveal]
Sarah Johnson
iPhone 15 Pro Giveaway โ Draw Complete
Create a dedicated page (e.g. /winner-reveal/) and add this shortcode. Then set this page URL in WooCommerce โ WinRocket โ Winner Settings โ Reveal Page URL. The "Show Winner" button on product pages will redirect here automatically.
Lucky Wheel Shortcode
Embeds a fully interactive spin-to-win wheel anywhere on your site. Works on product pages, landing pages, cart, checkout, sidebar widgets, or popups. Customers spin to win coupons, free tickets, reward points, or custom prizes.
Basic Usage
Free[wcs_lucky_wheel]
Lucky Wheel Prizes
Countdown Timer Shortcode
Displays a live countdown timer to the draw date for a specific giveaway product. Ideal for embedding on landing pages, email campaigns, or anywhere outside the standard product page. Fully styled and timezone-aware.
Basic Usage
Pro[wxgiveaway_countdown_timer product_id="123"]
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| product_id | number | โ | required | The giveaway product ID to attach the slider to. |
Winner List Shortcodes
Display past winners publicly โ either a complete history of all giveaways, or winners from a specific product. Builds trust with potential buyers and creates an archive of past draws.
All Winners List
Pro[wxgiveaway_winner_list]
Single Product Winner List
Pro[wxgiveaway_single_product_winner_list product_id="123"]
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| product_id | number | โ | required | The WooCommerce product ID of the specific giveaway product to show winners for. |
Create a dedicated landing page for each giveaway campaign. Embed this shortcode on it so participants can come back after the draw to see results โ without the product page being the only destination.
Ticket Quantity Range Slider Shortcode
Here customer can see how much ticket was sold โ a much more engaging experience especially for high ticket-count giveaways.
Quantity Range Slider
Pro[wxgiveaway_range_slider product_id="123"]
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| product_id | number | โ | required | The giveaway product ID to attach the slider to. |
All Participant List Show Shortcode
Displays a public list of everyone who has entered a specific giveaway โ participant name, ticket count, entry date, and status. Embed on product pages, landing pages, or anywhere via shortcode to build social proof and transparency.
All Participant List Show Shortcode (Pro)
Pro[wxgiveaway_participants id="0"]
Showing 4 of 142 participants
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| id | number | 0 | required | The WooCommerce product ID of the giveaway. Replace 0 with your product ID (e.g. 123). |
Add this shortcode to a campaign landing page so visitors can see who has already entered โ great for building FOMO and trust before they buy tickets.
All Shortcodes at a Glance
Copy any shortcode or jump to its full documentation section.
| Shortcode | Description | Plan | Parameters |
|---|---|---|---|
|
[wxg_winner_reveal]
|
Animated winner reveal page with countdown and fireworks | Free | None required โ |
|
[wcs_lucky_wheel]
|
Interactive spin-to-win lucky wheel on any page | Free | None required โ |
|
[wxgiveaway_countdown_timer product_id="0"]
|
Live draw countdown timer for a specific product | Pro | product_id, colors โ |
|
[wxgiveaway_winner_list]
|
Complete winner history across all campaigns | Pro | None required โ |
|
[wxgiveaway_single_product_winner_list product_id="0"]
|
Winner list for one specific giveaway product | Pro | product_id โ |
|
[wxgiveaway_range_slider product_id="0"]
|
Interactive ticket quantity range slider | Pro | product_id โ |
|
[wxgiveaway_participants id="0"]
|
Public participant list for a giveaway product | Pro | id โ |
Using Shortcodes in Elementor
WinRocket shortcodes work perfectly inside Elementor. Use the built-in Shortcode widget to embed any element into any Elementor-built page, section, or popup.
Open Elementor Editor
Edit the page where you want to embed the WinRocket element.
Search for "Shortcode" Widget
In the Elementor widget panel, search for "Shortcode" and drag it to your section.
Paste Your Shortcode
In the widget settings, paste the WinRocket shortcode (e.g. [wcs_lucky_wheel]) into the field.
Preview & Publish
Click Preview to confirm the element renders correctly, then Update & Publish.
๐ iPhone 15 Pro Giveaway
Win the latest iPhone! Tickets from $5.
In WooCommerce single product page all shortcode that use product_id here pass value 0.
Ready to Start Using Shortcodes?
Download WinRocket free, or upgrade to Pro for the full shortcode library.
Free forever ยท Pro $89 lifetime ยท 30-day refund guarantee
