add_action profile_update never triggered


I’m trying to launch a function when I update a user profile from the backend.
(The same function works very well in user_register hook).
As it was not working, I created a really simple function like this :

add_action( 'profile_update ', 'my_test_function' );

function my_test_function( $user_id )

But nothing happens. I click update, and come back to the user page.
It seems that it’s never triggered.
Any idea why ?
Thanks a lot !


>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="">

add_action profile_update never triggered</a>
Nerikizim 9 months 0 Answers 46 views 0

Leave an answer