# Post profile Update function with \[s2Member-Profile\] fails to capture select fields

**URL:** <https://forums.wpsharks.com/t/post-profile-update-function-with-s2member-profile-fails-to-capture-select-fields/13515>\
**Category:** s2Member\
**Created:** [June 23, 2026, 7:27pm UTC](https://forums.wpsharks.com/t/post-profile-update-function-with-s2member-profile-fails-to-capture-select-fields/13515 "2026-06-23T19:27:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClarityTeam](https://forums.wpsharks.com/letter_avatar_proxy/v4/letter/c/d26b3c/32.png) [@ClarityTeam](https://forums.wpsharks.com/u/ClarityTeam)\
**Post date:** [June 23, 2026, 7:27pm UTC](https://forums.wpsharks.com/t/post-profile-update-function-with-s2member-profile-fails-to-capture-select-fields/13515/1 "2026-06-23T19:27:10Z")

</div>

I’ve written a function to send my custom fields to an external API after a profile is updated from the [s2Member-Profile] page.

**I get the user\_id:**  
`$user_info = get_userdata($user_id );`

**Then get the pofile fields I want:**  
`$gender = get_user_field('gender', $user_id);`

**Then I send them along to my integration and log the changes.**

Strangely, this fine for text fields, but not for selects. All my select fields return the value when the profile was loaded instead of showing the changed values.

I’ve tried using **profile\_update** and **ws\_plugin\_\_s2member\_during\_handle\_profile\_modifications** and the result is identical for both (the fields themselves do update, so if I submit twice the correct value eventually gets through).

Thanks for any ideas!

---

<div class="post-metadata">

**Author:** ![clavaque](https://forums.wpsharks.com/user_avatar/forums.wpsharks.com/clavaque/32/1792_2.png) [@clavaque](https://forums.wpsharks.com/u/clavaque)\
**Post date:** [August 29, 2026, 2:16am UTC](https://forums.wpsharks.com/t/post-profile-update-function-with-s2member-profile-fails-to-capture-select-fields/13515/2 "2026-08-29T02:16:48Z")

</div>

Hi Craig.

Sorry for the late reply. I looked into this while working on the new release and found the timing issue you were running into.

WordPress’s `profile_update` hook fires before s2Member finishes saving its custom profile fields. The existing `ws_plugin__s2member_during_handle_profile_modifications` hook runs after those fields are saved, but before s2Member refreshes the user’s cached data, so re-reading a field with `get_user_field()` there can still give you the previous value.

I added a new hook in v260829 specifically for integrations that need to read the final saved profile data after that refresh:

`ws_plugin__s2member_during_handle_profile_modifications_after_user_refresh`

So your customization could do something like this:

```php
add_action('ws_plugin__s2member_during_handle_profile_modifications_after_user_refresh', function($vars)
{
    $user_id = $vars['user_id'];

    $user_info = get_userdata($user_id);
    $gender = get_user_field('gender', $user_id);

    // Send the freshly updated values to your integration here.
});

```

I specifically tested changing a select field through `[s2Member-Profile]` and reading it again with `get_user_field()` from this new hook, and it returned the newly saved value.

> **[s2member v260829 Now Available | s2Member®](https://s2member.com/s2member-v260829-now-available/)**
>
> s2Member v260829 (Framework and Pro) was released on August 29th, 2026. (Framework) Major Improve...

I hope that helps you! Please give that a try and let me know how it goes.

🙂

---

<div class="post-metadata">

**Author:** ![ClarityTeam](https://forums.wpsharks.com/letter_avatar_proxy/v4/letter/c/d26b3c/32.png) [@ClarityTeam](https://forums.wpsharks.com/u/ClarityTeam)\
**Post date:** [September 7, 2026, 5:11pm UTC](https://forums.wpsharks.com/t/post-profile-update-function-with-s2member-profile-fails-to-capture-select-fields/13515/3 "2026-09-07T17:11:19Z")

</div>

Thank you, this looks fantastic, I appreciate your taking the time to add that and respond!
