PeepSo Documentation

Action: profile completeness changed

Hook
peepso_action_profile_completeness_change

 

Plugin PeepSo Foundation
Since 1.8.2
Status Active
Args
array

Description

Fires after user’s profile completeness percentage changes when saving a field.

Fires inside an AJAX call and all output is discarded. You can set transients, send notifications, write to database etc, but you cannot modify the AJAX output.

The argument is an array('before'⇒(int),'after'⇒(int) so you can (for example) make sure to fire your code only when the percentage goes up (or down).

This will NOT take into account admin adding/removing fields until user saves something in their profile. Profile completeness is recalculated ONLY when users modify their profiles.

Examples

Get 10% off and a free eBook!

Subscribe to our newsletter to get a welcome discount:  10% off your first purchase* and receive a  free eBook:

"The Secrets Of Successful Online Communities"

* The discount code can only be used once, on a new purchase, not a renewal or upgrade. Promotions can't be combined.