latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Change profile custom fields values

Home Forums Community Forum Change profile custom fields values

This topic contains 1 reply, has 2 voices. Last updated by  Jason (Lead Developer) 4 years, 11 months ago.

Topic Author Topic
Posted: Tuesday Feb 7th, 2012 at 2:06 pm #4383
Richard Vencu
Username: rvencu

This continues the old thread at http://www.primothemes.com/forums/viewtopic.php?f=4&t=17107

Hi Jason, indeed, it works well and I need more time to read docs more in depth… At this stage I am able to populate (custom) profile fields with pretty much anything I want.

Is there a filter for what happens when the profile is saved? I would like to be able to alter some values at this time too.

Richard

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Feb 8th, 2012 at 12:08 pm #4473
Staff Member

Thanks for the follow-up!

Yes, please use this Hook:

add_action("ws_plugin__s2member_during_handle_profile_modifications", "my_function");
function my_function($vars = array())
	{
	
	}

There is a list of several Profile related Hooks/Filters here:
http://www.s2member.com/codex/stable/s2member/profiles/package-filters/

You will find the source code where the Hook I mentioned is fired here:
http://www.s2member.com/codex/stable/source/s2member/includes/classes/profile-mods-in.inc.php/#src_doc_line_121

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.