Action after updating profile photo in ultimate member

I want to add an action after updating profile photo in ultimate member plugin. I’m trying this at Code snippets plugin:

// define the um_user_after_updating_profile callback
function action_um_user_after_updating_profile( $to_update ) {
// make action magic happen here…
echo ‘<script language=”javascript”>’;
echo ‘alert(“message successfully sent”)’;
echo ‘</script>’;
};

// add the action
add_action( ‘um_user_after_updating_profile’, ‘action_um_user_after_updating_profile’, 10, 1 );

But it’s not working and I don’t know why.

Thanks

Read more here:: Action after updating profile photo in ultimate member

Leave a Reply

Your email address will not be published. Required fields are marked *