How do I send this line of code to the webhook, that is, when it gives...
How do I send this line of code to the webhook, that is, when it gives the Activate alarm, it should be sent to the webhook Wordpress Php :
register_activation_hook( __FILE__, function(){
$logFilePath = plugin_dir_path( __FILE__ ) . 'log.txt';
file_put_contents( $logFilePath, date('Y-m-d H:i:s') . ': plugin Activate !' . PHP_EOL , FILE_APPEND);
} );```
I have not tried anything yet