ActiveCampaign Forum

Webhook is skipped


#1

Hi,

I wrote really simple php script, that adds contact access to custom level on my wordpress site.

It works, when I run it in web browser this way:

http://www.mysite.pl/script.php?uzytkownik=email@hotmail.com

But when I try to run it via webhook:

http://www.mysite.pl/script.php?uzytkownik=%EMAIL%

it is skipped in automation. What is the reason?

This is the script:

<?php require_once('wp-load.php'); $uzytkownik = $_GET['uzytkownik']; $user = get_user_by( 'email', $uzytkownik); $userId = $user->ID; rua_add_user_level($userId,13156); ?>

Thanks,
Szymon


#2

Can anybody help me? I really need this to work.


#3

Hi @instrukcjaimprowizac,

I can submit a support ticket on your behalf and our team will reach out to via email.

Thank you!


#4

Hi,

thanks, but nobody has reached me.