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:
But when I try to run it via webhook:
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); ?>