Plugin Author
anmari
(@anmari)
Hi Josh,
the plugin does already have that as an option. Please check your cache settings and Read carefully:
http://wpusersplugin.com/3458/cacheing-amr-users/
One can request cache updates and it will then trigger on
add_action(‘profile_update’,’amr_user_change’);
add_action(‘user_register’,’amr_user_change’);
add_action(‘deleted_user’,’amr_user_change’); // also for wpmu
add_action(‘added_user_meta’,’amr_user_meta_change’);
add_action(‘updated_user_meta’,’amr_user_meta_change’);
add_action(‘deleted_user_meta’,’amr_user_meta_change’);
add_action(‘make_spam_user’,’amr_user_meta_change’);
add_action(‘make_ham_user’,’amr_user_meta_change’);
add_action(‘remove_user_from_blog’,’amr_user_change’);
add_action(‘add_user_to_blog’,’amr_user_change’);
Note it can be dangerous (add load to your system if you have frequent users updates).
PLease note that it does it in background report by report and you need web activity for wordpress cron to run, so sometimes it may appear to you testing that updates are not happening – use a cron manager, check the logs and stats.
Thanks for the reply Anmari,
I think the problem I’m running into is the list not being updated because s2member does not store its custom fields normally, therefore the list is not being updated.
Do you know of a hook when the users custom fields are updated in s2members.
Regards,
Josh
Plugin Author
anmari
(@anmari)
Nope – you will have to ask the s2member people. If they have a hook on their update, then you can add a little site specific plugin that just does
add_action(‘s2updatehook’,’amr_user_change’);
Alternatively, change settings to show the ‘refresh’ button so people can request a refresh of the user list themselves when needed
and/or set more frequent auto update.
OR use one of the other plugins for user data thatdoes use the wordpress hook and data they way they should be.
I think advanced fields – something like that was one.