Docs / Ele Conditions / Built-in variables

Built-in variables

These variables are available in the Variable dropdown for the "Variable comparison" condition type. All date/time values use your WordPress timezone (Settings → General).

Date and time

VariableTypeExampleDescription
nowtext2026-05-06 14:30:00Current date and time
current_datetext2026-05-06Current date
current_hournumber14Current hour, 0–23
current_daynumber3Day of the week: 1=Monday … 7=Sunday
current_monthnumber5Month: 1–12
current_yearnumber2026Current year

Post

VariableTypeExampleDescription
IDnumber42Current post ID
post_statustextpublishPost status
post_typetextpostPost type
post_authortextadminAuthor username
post_author_idnumber1Author user ID
comment_countnumber12Number of comments
content_lengthnumber3420Content length in characters (no HTML)
excerpt_lengthnumber280Excerpt length in characters
post_age_daysnumber45Days since the post was published
post_has_thumbnailtexttrueWhether the post has a featured image
post_word_countnumber820Word count of the post content

User

VariableTypeExampleDescription
user_idnumber5Current user ID (0 if not logged in)
user_roletextsubscriberFirst role of the current user
is_logged_intexttrueWhether the user is logged in

WooCommerce

Available only when WooCommerce is installed and active.

VariableTypeExampleDescription
cart_countnumber3Number of items in the cart
cart_totalnumber149.90Cart subtotal (before shipping and tax)

UTM / Campaign parameters

VariableURL parameterExample value
utm_source?utm_source=newsletternewsletter
utm_medium?utm_medium=emailemail
utm_campaign?utm_campaign=black_fridayblack_friday
utm_content?utm_content=banner_topbanner_top
utm_term?utm_term=elementorelementor

UTM variables are empty when the parameter is not present in the URL.