User Meta Condition
The User Meta display condition allows you to show or hide content based on custom user meta fields stored in your WordPress database. This flexible targeting tool enables you to personalise content using any custom user data, including registration fields, WooCommerce customer information, and third-party plugin data.
How It Works
This condition evaluates WordPress user meta fields for logged-in users. You can check for the existence of specific meta keys or match exact meta values, providing powerful personalisation opportunities based on custom user data stored in your WordPress installation.
Setting Up the Rule
When configuring the User Meta condition, you'll need to specify:
- Meta Key: Enter the exact meta key name you want to check (required field)
- Meta Value: Optionally enter a specific value to match against (optional field)
- When empty: The rule checks only for the existence of the meta key
- When populated: The rule checks both that the meta key exists AND that its value matches exactly
Common Use Cases
Custom Registration Fields
Personalise content based on additional registration information:
- Show location-specific content using custom "city" or "region" meta fields
- Display industry-relevant messaging based on "job_title" or "company_type" fields
WooCommerce Customer Data
Target customers using WooCommerce-specific meta information:
- Show relevant content based on billing country or shipping preferences
- Display personalised messaging using customer preference fields
Third-party Plugin Integration
Leverage data from other plugins that store user meta:
- Show content based on membership levels from membership plugins
- Display targeted messaging using learning management system progress data
Important Notes
- The User Meta condition only works for logged-in WordPress users
- Meta keys are case-sensitive and must match exactly as stored in the database
- Meta values are matched exactly as stored (case-sensitive string comparison)
- The rule will not trigger for users without the specified meta key
- Custom meta fields must be properly stored in the WordPress user meta table
- Works with any plugin that stores data as WordPress user meta
Troubleshooting
If the User Meta condition isn't working as expected:
- Verify the user is logged in to WordPress
- Check that the meta key name is spelled correctly and matches the database exactly
- Confirm the meta key exists for the test user in the WordPress user meta table
- Ensure meta values match exactly (including case sensitivity) when using value matching
- Test with known users who have the expected meta data
The User Meta display condition provides unlimited flexibility for personalisation by tapping into any custom user data stored in WordPress, enabling highly targeted content delivery based on your specific user information requirements.