WordPress Affiliate Platform

Take control of your affiliates and drive more sales

  • Documentation
  • Affiliate Platform Plugin
  • Projects
  • Home

[Deprecated] – Capturing Lead Using Contact Form 7 and WP Affiliate Platform Plugins

This documentation is old and has been deprecated. It should not be used anymore. Use the new documentation for capturing lead with contact form 7 plugin.

Old Contact Form 7 and WP Affiliate Platform Lead Capture

Step 1: Setting up the Contact Form

Somewhere in your contact form’s “message body” enter the following piece of text:

[wp_affiliate_lead:reference:1:end]

Contact Form 7 setup

1 is the a reference number (it can be anything). If you have multiple contact forms on your site then this number allows you differentiate which form generated which lead.

Step 2: Modify the code so the lead gets captured upon contact form submission

Open the “classes.php” file from the “includes” directory of the Contact Form 7 plugin and search for the following text

$headers = "From: $sender\n";

Once you find that line simply add the code given here just above that line.

All done, now when a visitor submits a contact form that has the special tag embedded in the “message body” it will capture the lead. You can view all the leads in the “Manage Leads” menu of the Affiliate Platform Software. You will be able to manually award commission from this menu once you get revenue from a lead.

Screenshot of the Manage Leads Menu

Filed Under: Additional Resources Tagged With: Lead Capture

Leave a Reply

Your email address will not be published. Required fields are marked *

affiliate plugin infographic

Search

Recent Comments

  • admin on WP Affiliate Platform Frequently Asked Questions (FAQ)
  • Alex on WP Affiliate Platform Frequently Asked Questions (FAQ)
  • admin on WordPress Affiliate Platform Features
  • Ken Hammond on WordPress Affiliate Platform Features
  • admin on WooCommerce and WP Affiliate Software Plugin Integration

Featured WordPress Plugins

WP Express Checkout Plugin
wordpress_estore_icon
wordpress membership plugin icon
wordpress_affiliate_plugin_icon

Copyright © 2025 | WP Affiliate Plugin