user_meta_after_user_update not firing

Home Forums Plugin Support user_meta_after_user_update not firing

This topic contains 1 reply, has 1 voice, and was last updated by  Allbound 7 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8987

    Allbound
    Member

    I have a profile form in a modal and I need it to redirect the user after completion. I have tried using this function (and validate $formName) but it never seems to fire.

    How might I trouble shoot this?

    add_action( “user_meta_after_user_update”, “user_meta_after_user_update_function”, 10, 2 );

    function user_meta_after_user_update_function( $response, $formName ){
    global $userMeta;
    if ( $formName == “Modal Profile” ){
    echo $userMeta->jsRedirect( “http://test.com” );
    }
    }

    #8990

    Allbound
    Member

    Well, I solved it by just watching the dom for the change. But that’s less ideal than using the hook.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.