Support » Plugin: Ultimate Member - User Profile & Membership Plugin » Action after updating profile photo

  • 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.

    • This topic was modified 1 year, 8 months ago by desgrapador.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Champ Camba



    Can you please try changing the priority to 999?

    See if this made any difference.



    It doesn’t work. I’ve been trying other hooks and no one works. Maybe it’s a global problem with ultimate member hooks, but I don’t know what.


    Hi desgrapador,

    Have you tried to replace “language=”javascript” by “type=”text/javascript” ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Action after updating profile photo’ is closed to new replies.