I need webhooks not to be triggered by WebAPI rest calls as it'll cause a never ending loop of events with my remote system.
I put this in the handler as a short term fix:
if($_POST['ignorewebhooks']=='true')
{
return;
}
I use the MoodleRest PHP SDK so it's easy for me to add addition data to the API post, but it might be worth enabling other methods of the webhooks not being triggered?
client IP address?
bool value on the chosen event
I need webhooks not to be triggered by WebAPI rest calls as it'll cause a never ending loop of events with my remote system. I put this in the handler as a short term fix: if($_POST['ignorewebhooks']=='true') { return; } I use the MoodleRest PHP SDK so it's easy for me to add addition data to the API post, but it might be worth enabling other methods of the webhooks not being triggered? client IP address? bool value on the chosen event
Good work thanks