Community Support Forums — WordPress® ( Users Helping Users ) — 2010-08-17T11:35:59-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=489 2010-08-17T11:35:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=489&p=2347#p2347 <![CDATA[Re: Profile Edit Timing]]> Much appreciated.

Statistics: Posted by Jason Caldwell — August 17th, 2010, 11:35 am


]]>
2010-08-10T18:59:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=489&p=2255#p2255 <![CDATA[Re: Profile Edit Timing]]>
After trying several things, the following worked:

Code:
    $hook = "profile_update";
    add_action($hook, "catch_profile_edit", 20);


(higher priority number = lower priority = runs later)

Thanks! :mrgreen:

Statistics: Posted by martonic — August 10th, 2010, 6:59 pm


]]>
2010-08-10T15:18:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=489&p=2252#p2252 <![CDATA[Re: Profile Edit Timing]]> @RESOLVED/TODO :: profile editing Hooks.
After investigation, it seems that you're relying solely on the "profile_update" Hook.

Possible solutions for you:

1. See: /s2member/includes/functions/profile-modifications.inc.php
add_action("ws_plugin__s2member_after_handle_profile_modifications", "your_function");

2. Set your "profile_update" Hook with a lower priority than the default of 10 ( timing issue maybe ).

3. See: /s2member/includes/functions/users-lists.inc.php
There are some other Hooks provided by s2Member here that are related to admin panel updates.

Statistics: Posted by Jason Caldwell — August 10th, 2010, 3:18 pm


]]>
2010-08-05T15:48:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=489&p=2159#p2159 <![CDATA[Re: Profile Edit Timing]]>
@R/TODO :: profile editing hooks; availability of changed variables

Just to note. You will be updated automatically as these TODO items are addressed.

Statistics: Posted by Jason Caldwell — August 5th, 2010, 3:48 pm


]]>
2010-07-30T21:14:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=489&p=1995#p1995 <![CDATA[Profile Edit Timing]]>
I ran into something annoying. There may be nothing you can do about it, but here it is.

I entered a hook for "profile_update" to catch profile changes and update my account tables.

The trouble is that when this runs, any edits to "s2Member Custom Fields" have not yet been recorded to the database, and there seems to be no context in which they are available (the hook sends a user ID # and that's all). Regular changes (i.e. first name, last name, email) have been recorded and are available when the hook gets invoked.

Like I said, there's probably nothing you can do, but at least now you know about this issue.

Statistics: Posted by martonic — July 30th, 2010, 9:14 pm


]]>