Variable {USER}

jetFlow.io > Documentation  > Workflow Variables  > Variable {USER}

Variable {USER}

This variable contains information pertaining to the currently logged-in WordPress user.

For instance, to send an email to the current user use pattern {USER.user_email} to get the email address of the user and {USER.display_name} the name of the user.

Or, for instance, you can stop the execution of a workflow conditionally if the user does not have the capability to upload files. To achieve this, use variable {USER.allcaps.upload_files} in the action Stop if.

See also: How to check if a user has a particular role.

Example of the full structure of the USER variable:

Variable Value
{USER.ID} 64
{USER.caps.administrator} 1
{USER.cap_key} wp_capabilities
{USER.roles}
This variable is a list
administrator
{USER.filter}
{USER.nickname} john
{USER.first_name} John
{USER.last_name} Coltrane
{USER.description} John William Coltrane was an American jazz saxophonist and composer.
{USER.user_login} john
{USER.user_pass}
{USER.user_nicename} john
{USER.user_email} john@jetflow.io
{USER.user_url} https://jetflow.io/
{USER.user_registered} 2020-01-22 09:04:00
{USER.user_status} 0
{USER.display_name} John Coltrane
{USER.data.nickname} john
{USER.data.first_name} John
{USER.data.last_name} Coltrane
{USER.data.description} John William Coltrane was an American jazz saxophonist and composer.
{USER.data.rich_editing} true
{USER.data.syntax_highlighting} true
{USER.data.comment_shortcuts} false
{USER.data.admin_color} fresh
{USER.data.use_ssl} 0
{USER.data.show_admin_bar_front} true
{USER.data.locale}
{USER.data._crb_reg_.IP} 211.154.68.24
{USER.data._crb_reg_.user} 2
{USER.data.dismissed_wp_pointers}
{USER.data.cerber_2fa_email}
{USER.allcaps.switch_themes} 1
{USER.allcaps.edit_themes} 1
{USER.allcaps.activate_plugins} 1
{USER.allcaps.edit_plugins} 1
{USER.allcaps.edit_users} 1
{USER.allcaps.edit_files} 1
{USER.allcaps.manage_options} 1
{USER.allcaps.moderate_comments} 1
{USER.allcaps.manage_categories} 1
{USER.allcaps.manage_links} 1
{USER.allcaps.upload_files} 1
{USER.allcaps.import} 1
{USER.allcaps.unfiltered_html} 1
{USER.allcaps.edit_posts} 1
{USER.allcaps.edit_others_posts} 1
{USER.allcaps.edit_published_posts} 1
{USER.allcaps.publish_posts} 1
{USER.allcaps.edit_pages} 1
{USER.allcaps.read} 1
{USER.allcaps.level_10} 1
{USER.allcaps.level_9} 1
{USER.allcaps.level_8} 1
{USER.allcaps.level_7} 1
{USER.allcaps.level_6} 1
{USER.allcaps.level_5} 1
{USER.allcaps.level_4} 1
{USER.allcaps.level_3} 1
{USER.allcaps.level_2} 1
{USER.allcaps.level_1} 1
{USER.allcaps.level_0} 1
{USER.allcaps.edit_others_pages} 1
{USER.allcaps.edit_published_pages} 1
{USER.allcaps.publish_pages} 1
{USER.allcaps.delete_pages} 1
{USER.allcaps.delete_others_pages} 1
{USER.allcaps.delete_published_pages} 1
{USER.allcaps.delete_posts} 1
{USER.allcaps.delete_others_posts} 1
{USER.allcaps.delete_published_posts} 1
{USER.allcaps.delete_private_posts} 1
{USER.allcaps.edit_private_posts} 1
{USER.allcaps.read_private_posts} 1
{USER.allcaps.delete_private_pages} 1
{USER.allcaps.edit_private_pages} 1
{USER.allcaps.read_private_pages} 1
{USER.allcaps.delete_users} 1
{USER.allcaps.create_users} 1
{USER.allcaps.unfiltered_upload} 1
{USER.allcaps.edit_dashboard} 1
{USER.allcaps.update_plugins} 1
{USER.allcaps.delete_plugins} 1
{USER.allcaps.install_plugins} 1
{USER.allcaps.update_themes} 1
{USER.allcaps.install_themes} 1
{USER.allcaps.update_core} 1
{USER.allcaps.list_users} 1
{USER.allcaps.remove_users} 1
{USER.allcaps.promote_users} 1
{USER.allcaps.edit_theme_options} 1
{USER.allcaps.delete_themes} 1
{USER.allcaps.export} 1
{USER.allcaps.manage_woocommerce} 1
{USER.allcaps.view_woocommerce_reports} 1
{USER.allcaps.edit_product} 1
{USER.allcaps.read_product} 1
{USER.allcaps.delete_product} 1
{USER.allcaps.edit_products} 1
{USER.allcaps.edit_others_products} 1
{USER.allcaps.publish_products} 1
{USER.allcaps.read_private_products} 1
{USER.allcaps.delete_products} 1
{USER.allcaps.delete_private_products} 1
{USER.allcaps.delete_published_products} 1
{USER.allcaps.delete_others_products} 1
{USER.allcaps.edit_private_products} 1
{USER.allcaps.edit_published_products} 1
{USER.allcaps.manage_product_terms} 1
{USER.allcaps.edit_product_terms} 1
{USER.allcaps.delete_product_terms} 1
{USER.allcaps.assign_product_terms} 1
{USER.allcaps.edit_shop_order} 1
{USER.allcaps.read_shop_order} 1
{USER.allcaps.delete_shop_order} 1
{USER.allcaps.edit_shop_orders} 1
{USER.allcaps.edit_others_shop_orders} 1
{USER.allcaps.publish_shop_orders} 1
{USER.allcaps.read_private_shop_orders} 1
{USER.allcaps.delete_shop_orders} 1
{USER.allcaps.delete_private_shop_orders} 1
{USER.allcaps.delete_published_shop_orders} 1
{USER.allcaps.delete_others_shop_orders} 1
{USER.allcaps.edit_private_shop_orders} 1
{USER.allcaps.edit_published_shop_orders} 1
{USER.allcaps.manage_shop_order_terms} 1
{USER.allcaps.edit_shop_order_terms} 1
{USER.allcaps.delete_shop_order_terms} 1
{USER.allcaps.assign_shop_order_terms} 1
{USER.allcaps.edit_shop_coupon} 1
{USER.allcaps.read_shop_coupon} 1
{USER.allcaps.delete_shop_coupon} 1
{USER.allcaps.edit_shop_coupons} 1
{USER.allcaps.edit_others_shop_coupons} 1
{USER.allcaps.publish_shop_coupons} 1
{USER.allcaps.read_private_shop_coupons} 1
{USER.allcaps.delete_shop_coupons} 1
{USER.allcaps.delete_private_shop_coupons} 1
{USER.allcaps.delete_published_shop_coupons} 1
{USER.allcaps.delete_others_shop_coupons} 1
{USER.allcaps.edit_private_shop_coupons} 1
{USER.allcaps.edit_published_shop_coupons} 1
{USER.allcaps.manage_shop_coupon_terms} 1
{USER.allcaps.edit_shop_coupon_terms} 1
{USER.allcaps.delete_shop_coupon_terms} 1
{USER.allcaps.assign_shop_coupon_terms} 1
{USER.allcaps.edit_shop_webhook} 1
{USER.allcaps.read_shop_webhook} 1
{USER.allcaps.delete_shop_webhook} 1
{USER.allcaps.edit_shop_webhooks} 1
{USER.allcaps.edit_others_shop_webhooks} 1
{USER.allcaps.publish_shop_webhooks} 1
{USER.allcaps.read_private_shop_webhooks} 1
{USER.allcaps.delete_shop_webhooks} 1
{USER.allcaps.delete_private_shop_webhooks} 1
{USER.allcaps.delete_published_shop_webhooks} 1
{USER.allcaps.delete_others_shop_webhooks} 1
{USER.allcaps.edit_private_shop_webhooks} 1
{USER.allcaps.edit_published_shop_webhooks} 1
{USER.allcaps.manage_shop_webhook_terms} 1
{USER.allcaps.edit_shop_webhook_terms} 1
{USER.allcaps.delete_shop_webhook_terms} 1
{USER.allcaps.assign_shop_webhook_terms} 1
{USER.allcaps.frm_view_forms} 1
{USER.allcaps.frm_edit_forms} 1
{USER.allcaps.frm_delete_forms} 1
{USER.allcaps.frm_change_settings} 1
{USER.allcaps.frm_view_entries} 1
{USER.allcaps.frm_delete_entries} 1
{USER.allcaps.loco_admin} 1
{USER.allcaps.administrator} 1
No Comments

Sorry, the comment form is closed at this time.