Hooking into settings update
I want to hook into to password save action which is submitted from user settings page. I havent made a test yet but it seems bp_settings_action_general function(bp-settins->bp-settings-action.php) is responsible for this.
There is only 1 action (bp_core_general_settings_after_save) defined in the function and it’s runing right after the bp_core_add_message function.
It looks like if i use bp_core_general_settings_after_save hook and made a custom verification because of the previous bp_core_add_message usage, a “failure” message may display even my custom verification returns true.
I’m not sure is there a function to remove already stored message but it may work for me. I can remove core message before runing custom validations and then add mines.
- The topic ‘Hooking into settings update’ is closed to new replies.