<?php $secret = 'top_secret'; $url = 'https://example.com/wa-hook/abc123abc123 $parameters = ['foo' => 'bar']; $args = ['headers' => []]; $args['body'] = json_encode($parameters); $hash = hash_hmac('sha1', $args['body'], $secret); $args['headers']['Content-Type'] = 'application/json; charset=utf-8'; $args['headers']['X_HUB_SIGNATURE'] = $hash; $request = wp_remote_post($url, $args);