• Resolved alirazarex3

    (@alirazarex3)


    Hi,

    I used this hook to update user meta

    add_action( ‘wppb_edit_profile_success’, ‘wppbc_custom_code’, 20, 3 );

    I also want to use update user meta after the successful email confirmation. I tried this hook but didnt work.

    add_action( ‘wppb_activate_user ‘, ‘wppbc_custom_code_activate’, 20, 3 );

    function wppbc_custom_code_activate( $user_id , $password, $meta ) {
    $user = new WP_User( $user_id );
    error_log( print_r( $user_id, true ) );
    error_log( print_r( $user, true ) );
    error_log( print_r( $meta, true ) );
    }

    But its not triggering can you please guide me what is the correct hook?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Georgian Cocora

    (@raster02)

    Hello @alirazarex3,

    The hook you have found is correct.

    Please take note that this should run when a user clicks the confirmation link from the email that he receives. It doesn’t execute right after the user has completed the form.

    Regards.

    Thread Starter alirazarex3

    (@alirazarex3)

    Great,

    But its not working for me. Not logging anything or showing debug info.

    Plugin Author Georgian Cocora

    (@raster02)

    Hello,

    Does the user get activated correctly? It doesn’t make sense to not trigger if the activation works.

    You can also test on a clean website with only Profile Builder enabled that it triggers.

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Update user mata after successful email confirmation’ is closed to new replies.