15 lines
587 B
PHP
15 lines
587 B
PHP
<?php
|
|
|
|
class Partnerexpo_Core_Integrations {
|
|
public static function add_hooks($loader) {
|
|
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;
|
|
}
|
|
|
|
$loader->add_action( 'comment_post', Partnerexpo_Core_Integration_Comment_Form::class, 'queue_up', 10, 3 );
|
|
$loader->add_action( 'process_comment_data', Partnerexpo_Core_Integration_Comment_Form::class, 'run_process', 10, 1 );
|
|
}
|
|
} |