Skip to content
Menu
Live demo

WordPress User Login Trigger

Updated January 14, 2026

The WordPress User Login trigger fires when a user logs into your WordPress site, with an optional inactivity filter.

When It Fires

  • User logs in through WordPress login form
  • User logs in via social login plugin
  • User logs in through WooCommerce checkout

Configuration Options

OptionDescription
Minimum Days Since Last LoginOnly trigger if user hasn’t logged in for this many days. Options: 7, 14, 30, 60, 90 days. Leave empty to trigger on every login.
User RolesMulti-select to filter by specific user roles.

Important: The inactivity filter is key for re-engagement campaigns. Without it, the automation would fire on every single login, which is usually not what you want.

Available Data

VariableDescription
{{email}}User’s email address
{{first_name}}First name
{{last_name}}Last name
{{user_role}}Primary user role
{{days_since_last_login}}Number of days since previous login

Common Use Cases

Welcome Back Campaign

  1. WP User Login: Min 30 days since last login
  2. Send Email: “Welcome back! Here’s what’s new”
  3. Add Tag: “re-engaged”

Re-activation Tracking

  1. WP User Login: Min 90 days since last login
  2. Remove Tag: “inactive”
  3. Add Tag: “reactivated”
  4. Webhook Call: Update CRM

VIP Re-engagement

  1. WP User Login: Min 60 days, Role = “VIP”
  2. Send Email: “We’ve missed you! Exclusive offer inside”

How Login Tracking Works

WP Outreach tracks the last login time for each user in the wp_outreach_last_login user meta field. When a user logs in:

  1. System checks time since last login
  2. If it meets the minimum days threshold, trigger fires
  3. Last login time is updated for next comparison

Pro Tips

  • Always use the inactivity filter unless you have a specific reason to trigger on every login
  • Combine with role filtering for targeted re-engagement
  • Use the {{days_since_last_login}} variable to personalize your messages

Last updated: January 14, 2026

Need help?

Can't find what you're looking for or found an error in the docs?

Contact Support
outreach / deploy

Fix your WordPress email.
Ship every message.

SMTP delivery, newsletter campaigns and automation in one plugin. Install in minutes, keep your data on your own server.

$ wp plugin install outreach --activate