WIP integration for com-form

This commit is contained in:
2026-03-16 13:14:45 +01:00
parent 89b7b5e2cb
commit 4f75604fa0
8 changed files with 197 additions and 102 deletions

View File

@@ -0,0 +1,27 @@
<?php
/**
* Sends in the data from the comment form to MiniCRM
*
* @link https://github.com/Duskell
* @since 1.1.11
*
* @package Partnerexpo_Core
* @subpackage Partnerexpo_Core/includes/mc-integrations
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
class Partnerexpo_Core_Integration_Comment_Form {
public static function queue_up($comment_id, $comment_approved, $commentdata) {
as_schedule_single_action( time() + 60, 'process_comment_data', [ $comment_id ] );
}
public static function run_process($comment_id) {
Logger::log('data', $comment_id);
}
}