• Resolved user1337

    (@user1337)


    Hello,

    simple question: how do i use the action hooks?

    I saw that the hook “wp_referral_code_after_refer_submitted” is mentioned in /includes/wp_referral_code_registration.php. I guess i have to create a new function for that, but where do i include the “wp_referral_code_after_refer_submitted” function and how?
    Pleaaaase help 🙂

    Thanks alot!

Viewing 1 replies (of 1 total)
  • Plugin Author shalior

    (@shalior)

    Hey
    Example to use the hook:

    add_action( 'wp_referral_code_after_refer_submitted', function ($new_user_id, $referrer_user_id, $ref_code, $new_user_ref_code){
    
    },10, 4 );

    use it in functions.php of the child theme.

Viewing 1 replies (of 1 total)
  • The topic ‘How do i use the action hooks?’ is closed to new replies.