WordPress Affiliate Manager

Affiliates Management Plugin for WordPress

  • Home
  • Features
    • Screen Shots
  • Download
  • Documentation
  • Addons
  • Support
    • Support Forum
    • Forum Login
    • Forum Registration
    • Contact
    • Premium Addon/Plugin Support

[Resolved] Send Affiliate ID through Webhook

by

WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › Send Affiliate ID through Webhook

Tagged: affiliate id, code

  • This topic has 0 replies, 1 voice, and was last updated 5 years, 9 months ago by aaronmc.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • September 18, 2019 at 9:31 pm #4904
    aaronmc
    Participant

    Hi,

    I’m using WP Webhooks + Zapier to port in customer information to my CRM. I’m trying to send over a customer’s affiliate ID.

    Can someone help me with code or a how-to on sending affiliate code? WP Webhooks allows for custom triggers and says this:

    This webhook enables you to send a custom action to a webhook within your code. To do so, you only have to define the action and the data you want to send to it.
    
    Down below you will see an example on what it may looks like:
    
    $custom_data = array(
        'data_1' => 'value'
    );
    
    do_action( 'wp_webhooks_send_to_webhook', $custom_data );
            
    As soon as this action fires, it will instantly be sent the specified webhook urls within this webhook trigger.
    
    Please don't forget to set your custom webhook url above so that the webhook works.

    I know WP Affiliate Manager gives this webhook in their Documentation:

    add_action('wpam_front_end_registration_form_submitted', 'after_registration_callback', 10, 2);
    function after_registration_callback ($model, $request)
    {
        //Do stuff
    }

    But I’m only creating affiliates on the backend AND I don’t know how to use what WP Webhooks is giving me and what WP Affiliate Manager is giving me to send just the affiliate ID.

    Thanks in advance for your help!

  • Author
    Posts
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Log In

Featured Addons

  • WooCommerce Coupon Tracking
  • WooCommerce Product Specific Commission

Copyright © 2025 | WordPress Affiliate Manager | Privacy Policy