0

I want to add the feature if a user clicks on a Link which is already generated with a affiliate link:

www.example.com/id82312312312?mt=8&uo=4&at=AFFILIATE-ID 

But if a user clicks on the link, the WordPress plugin automatically adds this at the end of the URL for every user.

www.example.com/id82312312312?mt=8&uo=4&at=AFFILIATE-ID&ct=USERNAME

I tried to at this to functions.php that I generated with Advanced Custom Fields plugin.

if(function_exists("register_field_group")) { register_field_group(array ( 'id' => 'acf_testfeld', 'title' => 'TESTFELD', 'fields' => array ( array ( 'key' => 'field_58ef7574baf5e', 'label' => 'testfeld', 'name' => 'testfeld',), ), 'menu_order' => 0, )); }
  • i tried to at this to functions.php its generated with advanced custom fields for wordpress. – Artur Sellyo Apr 13 '17 at 14:12
  • if(function_exists("register_field_group")) { register_field_group(array ( 'id' => 'acf_testfeld', 'title' => 'TESTFELD', 'fields' => array ( array ( 'key' => 'field_58ef7574baf5e', 'label' => 'testfeld', 'name' => 'testfeld', – Artur Sellyo Apr 13 '17 at 14:13
  • ), ), 'menu_order' => 0, )); } – Artur Sellyo Apr 13 '17 at 14:13
  • 1
    Please do not post code inside comments. Better to edit your question and add your code. – Laxmana Apr 13 '17 at 15:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.