You are here: Home
Support site for Tips and Tricks HQ premium products
I created a shortcode for “assign a referrer to me” cases where one doesn’t exist.
if(isset($_POST)){
$referrer_id = strip_tags($_POST);
record_click($referrer_id);
}
function wp_aff_set_affiliate_id_formrd()
{
$output = “”;
if(!isset($_POST)){$_POST=””;}
$output .= ‘<form method=”post” action=”#aff_id_entry_anchor”>’;
$output .= ‘<input name=”wp_aff_affiliate_id” type=”hidden” size=”20″ value=”your_value_here”/>’;
$output .= ‘<div style=”padding-top:5px” class=”submit”>’;
$output .= ‘<input type=”submit” name=”wp_aff_affiliate_id_submitrd” value=”Assign me an affiliate” />’;
$output .= ‘</div>’;
$output .= ‘</form>’;
return $output;
}
I’d be interested in this option as well – if it’s something the developers want to consider in a future release.