Profile Update Trigger
Author | Posts |
---|---|
August 2, 2013 at 12:35 am 6574 | |
Alexis Media | I am using the below code to make changes to the author links and such.
The issue is this only seems to be triggered from update a profile from wp-admin. I need it to trigger after submitting from the plugin. |
August 2, 2013 at 1:06 am 6575 | |
Tareq Hasan | Take a look at the action hook list, there is one action that triggers when profile updates. |
August 3, 2013 at 1:10 am 6609 | |
Alexis Media | tried replacing “user_profile_update_errors” and “request” with “wpuf_update_profile” and it just locks the page up on saving it. Any other ideas you may have please? |
August 3, 2013 at 1:21 am 6612 | |
Alexis Media | Issue i am having is after a user update thier profile the url wont work till after i go to WP-Admin and save the profile from there. I dont have to make any changes just visit the users profile and click save from the backend. Then the url starts working. Id like this to work from the user editing the profile. What could be going on to trigger this in the backend thats not going on on the front? |
August 3, 2013 at 1:25 am 6613 | |
Alexis Media | Even tried to flush_rewrite_rules with your trigger and it still didnt work. |
August 3, 2013 at 1:32 am 6614 | |
Tareq Hasan | You can’t expect to paste a code that works for something and that will work in everywhere and with every plugin. The context is different and they works differently. May be this will work- if ( !empty( $user->nickname ) ) { add_action( ‘wpuf_update_profile’, ‘wpufe_update_nicename’ ); |
August 3, 2013 at 1:53 am 6615 | |
Alexis Media |
I dont expect it to work right away, is why im here getting help. |
August 3, 2013 at 1:56 am 6616 | |
Alexis Media | and that does seem to work. thank you. |