I crash my site everytime too
function add_parameter_to_url($content) {
$transaction_id="";
if(!empty($_GET['transaction_id'])) $transaction_id=$_GET['transaction_id'];
$aff_sub="";
if(!empty($_GET['aff_sub'])) $aff_sub=$_GET['aff_sub'];
$aff_sub2="";
if(!empty($_GET['aff_sub2'])) $aff_sub2=$_GET['aff_sub2'];
$source="";
if(!empty($_GET['source'])) $source=$_GET['source'];
$affiliate_id="";
if(!empty($_GET['affiliate_id'])) $source=$_GET['affiliate_id'];
$content=str_replace('{transaction_id}',$transaction_id,$content);
$content=str_replace('{aff_sub}',$aff_sub,$content);
$content=str_replace('{aff_sub2}',$aff_sub2,$content);
$content=str_replace('{source}',$source,$content);
$content=str_replace('{affiliate_id}',$affiliate_id,$content);
//$content="testing";
return $content;
}
add_filter( 'the_content', 'add_parameter_to_url',20 );
`