Preparing your giveaway experience…

Developer Reference

WinRocket Shortcodes

Embed any WinRocket element anywhere on your WordPress site — product pages, landing pages, sidebars, or Elementor layouts — with a single shortcode tag.

7
Total Shortcodes
3
Free Shortcodes
4
Pro Shortcodes
How It Works

Using WinRocket Shortcodes

Drop any shortcode into any WordPress page, post, widget area, or Elementor block. They just work.

1

Copy the Shortcode

Find the shortcode you need on this page and click "Copy" to grab it.

2

Open Your Page Editor

Go to any page/post in WordPress or open your Elementor layout.

3

Paste into Shortcode Block

Add a "Shortcode" block (Gutenberg) or "Shortcode" widget (Elementor) and paste.

4

Publish & Preview

Save the page and preview. Your WinRocket element will appear exactly as designed.

Basic Usage

Free
Embed winner reveal on a dedicated page
shortcode
[wxg_winner_reveal]
Live Preview

Sarah Johnson

iPhone 15 Pro Giveaway — Draw Complete

#WIN-007
●Winner name & ticket number
●Animated fireworks celebration
●Countdown before draw date
●Campaign name & draw date
Pro Tip

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.

Basic Usage

Free
Embed default lucky wheel
shortcode
[wcs_lucky_wheel]
Live Preview

Lucky Wheel Prizes

Free Gift (5%)
20% Coupon (20%)
Free Ticket (15%)
Jackpot (2%)
500 Points (18%)
Try Again (40%)

Basic Usage

Pro
shortcode — required product_id
[wxgiveaway_countdown_timer product_id="123"]
Live Preview
Draw closes in
04
Days
18
Hours
32
Mins
07
Secs
ParameterTypeDefaultRequiredDescription
product_idnumber—requiredThe giveaway product ID to attach the slider to.

All Winners List

Pro
Shows winners from every giveaway campaign
shortcode
[wxgiveaway_winner_list]
Live Preview
#WinnerCampaignDate
1Sarah J. — #WIN-007iPhone 15 ProJun 30, 2026
2Mike R. — #WIN-042Gaming ChairMay 28, 2026
3Ana C. — #WIN-118AirPods MaxApr 15, 2026

Single Product Winner List

Pro
Shows winner(s) for one specific giveaway product
shortcode — required product_id
[wxgiveaway_single_product_winner_list product_id="123"]
Parameters
ParameterTypeDefaultRequiredDescription
product_idnumber—requiredThe WooCommerce product ID of the specific giveaway product to show winners for.
Pro Tip — Campaign Landing Page

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.

Quantity Range Slider

Pro
shortcode — required product_id
[wxgiveaway_range_slider product_id="123"]
Live Preview
Ticket Quantity
Min: 1Max: 5
3 tickets sold
ParameterTypeDefaultRequiredDescription
product_idnumber—requiredThe giveaway product ID to attach the slider to.

All Participant List Show Shortcode (Pro)

Pro
Show all participants for a giveaway product
shortcode — required id
[wxgiveaway_participants id="0"]
Live Preview
#NameTicketsJoinedStatus
1Sarah J.5Jun 1 Winner
2Mike R.10Jun 3Entered
3Ana C.3Jun 5Entered
4Tom B.1Jun 6Entered

Showing 4 of 142 participants

●Participant name & ticket count
●Entry date & winner status
●Pagination, load more, or infinite scroll
●Privacy-safe name display options
ParameterTypeDefaultRequiredDescription
idnumber0requiredThe WooCommerce product ID of the giveaway. Replace 0 with your product ID (e.g. 123).
Pro Tip

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.

Quick Reference

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 →
Elementor Guide

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.

1
Open Elementor Editor

Edit the page where you want to embed the WinRocket element.

2
Search for "Shortcode" Widget

In the Elementor widget panel, search for "Shortcode" and drag it to your section.

3
Paste Your Shortcode

In the widget settings, paste the WinRocket shortcode (e.g. [wcs_lucky_wheel]) into the field.

4
Preview & Publish

Click Preview to confirm the element renders correctly, then Update & Publish.

Elementor Layout
yourstore.com/win

iPhone 15 Pro Giveaway

Win the latest iPhone! Tickets from $5.

Lucky Wheel
[wcs_lucky_wheel]
Countdown Timer
[wxgiveaway_countdown_timer product_id="42"]
Works with WooCommerce Single Product Page

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 · 14-day refund guarantee

Shortcode copied to clipboard!