WIP integration for com-form
This commit is contained in:
15
includes/class-partnerexpo-core-integrations.php
Normal file
15
includes/class-partnerexpo-core-integrations.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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 );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user