add_action profile_update never triggered

Question

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 )
{
    wp_die();
}

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="https://www.wptricks.com/question/add_action-profile_update-never-triggered/">

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

Leave an answer