17 lines
651 B
PHP
17 lines
651 B
PHP
<?php
|
|
|
|
class Partnerexpo_Core_Integrations {
|
|
public static function add_hooks($loader, $crm_client) {
|
|
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mc-integrations/com-form.php';
|
|
|
|
if ( ! $loader ) {
|
|
Logger::log('error', 'Loader not found, skipping integration hooks');
|
|
return;
|
|
}
|
|
|
|
$comment_form_integration = new Partnerexpo_Core_Integration_Comment_Form($crm_client);
|
|
|
|
$loader->add_action( 'comment_post', $comment_form_integration, 'queue_up', 10, 3 );
|
|
$loader->add_action( 'process_comment_data', $comment_form_integration, 'run_process', 10, 1 );
|
|
}
|
|
} |