• 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 6 years, 11 months ago by Desgrapador.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi,

    Can you please try changing the priority to 999?

    See if this made any difference.

    Regards,

    Thread Starter Desgrapador

    (@desgrapador)

    Hi,

    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.

    Thanks!

    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.