I would like to send a newsletter to all users from a wp_user_query (e.g. all users that have the custom field xx set to “active” and who have not logged in since 6 month).
Is it possible to dynamically generate a user list from such a query?
Hi, I don’t know if WordPress stores the last logged in date, on my standard installation I have not found such information. Anyway Newsletter does not work directly with WP users, you should export them and import them.
Newsletter can send Newsletter to WP users, so you can link a subscription with a user (see the subscriber panel functions), but there is no way to query over some WP user attributes.