22,433 reputation
41743
bio website xlino.com
location Reykjavik, Iceland
age
visits member for 2 years, 5 months
seen 4 hours ago

Developer from Iceland

Just another Earthling cruising the Milky Way galaxy

----- ]=|>


4h
answered WP_User_Query will not combine meta + normal search methods
2d
comment Mathematical operations on custom field values? (updated)
It sounds that you already got the purchase/renewal dates, so I would just use them instead and skip the wp-cron complication. The DateTime::diff in PHP might help here.
2d
comment Mathematical operations on custom field values? (updated)
Sounds like a complicated countdown. What about storing the final date instead as post meta and just use PHP to calculate the number of days left ( e.g. via DateTime )?
2d
comment Do something after sending email
I tested this method with the CF7 and it worked as expected. If the ajaxloader is spinning forever, it could indicate unrelated javascript/PHP/Server errors and therefore wp_mail() might never be called within CF7. Note that 3rd party plugins are off topic here on WPSE. @AmirMousavi
Jul
5
reviewed Close directorypress theme error mysql_error()
Jul
4
revised Sort users by “birthday” using WP_User_Query
added 355 characters in body
Jul
4
comment Sort users by “birthday” using WP_User_Query
I updated the answer with a workable code example, dependend on the date format dd/mm/yyyy that you mentioned in a comment above @need-help
Jul
4
revised Sort users by “birthday” using WP_User_Query
added 355 characters in body
Jul
4
revised Sort users by “birthday” using WP_User_Query
deleted 128 characters in body
Jul
4
revised Sort users by “birthday” using WP_User_Query
added 1921 characters in body
Jul
4
revised Sort users by “birthday” using WP_User_Query
added 1921 characters in body
Jul
4
revised Sort users by “birthday” using WP_User_Query
added 1921 characters in body
Jul
4
revised How to change user_login with wp-cli?
added 147 characters in body
Jul
4
revised How to change user_login with wp-cli?
added 59 characters in body
Jul
4
comment How to change user_login with wp-cli?
I updated the answer how we could update the user login without duplications. Maybe you got a better idea for that part. By using a custom command, we could just use two SQL queries, instead of a single one. The user login is defined in the wp_users table on single site install. The table prefix might be different. @KasperSouren
Jul
4
revised How to change user_login with wp-cli?
added 879 characters in body
Jul
4
revised Sort users by “birthday” using WP_User_Query
added 331 characters in body
Jul
4
comment Sort users by “birthday” using WP_User_Query
By sort here you mean to filter? How do you store the birthday dates?
Jul
4
answered Sort users by “birthday” using WP_User_Query
Jul
4
comment Wordpress sending emails continuously. How to stop it?
@AmirMousavi great to hear that, so hopefully you can tell your grandchildren a funny story about this adventure, in the future ;-)