Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schedule User Deletions with WP Cronjob #79

Open
MissVeronica opened this issue Jan 23, 2024 · 2 comments
Open

Schedule User Deletions with WP Cronjob #79

MissVeronica opened this issue Jan 23, 2024 · 2 comments

Comments

@MissVeronica
Copy link
Contributor

Cronjob has no effect

UM Support Forum issue
https://wordpress.org/support/topic/schedule-user-deletions-with-wp-cronjob-has-no-effect/

@MissVeronica
Copy link
Contributor Author

Solution:
Replace um_fetch_user( $user->ID ); with um_fetch_user( $user );

Note: the WP get_users function is returning in this case an array of User IDs and not a list of WP_User objects.

@sao321
Copy link

sao321 commented Oct 13, 2024

@MissVeronica Hi Veronica, I tried your solution, but it doesn't seem to work with the latest version. I also started a forum thread, but no one seems interested in testing whether this is just a configuration issue on my end or a broader problem that is reproduceable.

Do you mind to check if Replace um_fetch_user( $user->ID ); with um_fetch_user( $user ); still works with the lastest version? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants