WIP integration for com-form
This commit is contained in:
27
includes/mc-integrations/com-form.php
Normal file
27
includes/mc-integrations/com-form.php
Normal 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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user