• Resolved calliko

    (@calliko)


    Hello. I have a bonus system plugin. It awards points for registration using the hook add_action(
    ‘user_register’, ‘addPoints’ );
    But when registering through your plugin, points are not awarded. Apparently, when registering through your plugin, the hook “user_register” does not work. Maybe you have your own hook to add points to my users?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Irshad Ahmad

    (@irshadahmad21)

    Hello,

    You can use the wptelegram_login_after_insert_user action documented here.

    It has pretty much the same signature as that of user_register hook.

    add_action( 'wptelegram_login_after_insert_user', 'addPoints', 10, 2 );
    Thread Starter calliko

    (@calliko)

    Yes. I am currently studying your code and have come to the same conclusion. Thank you! The topic can be closed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.