finished comment integration, it should be working now

This commit is contained in:
2026-03-17 13:47:55 +01:00
parent 76eb96666b
commit f58248a8e7
10 changed files with 689 additions and 29 deletions

View File

@@ -126,10 +126,19 @@ class Partnerexpo_Core {
*/
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/utils/class-query-w-relevance.php';
include_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/utils/class-crypto.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/utils/class-logger.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/utils/class-crm-client.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-partnerexpo-core-integrations.php';
/**
* Action scheduler, used for scheduling comment processing.
*/
require_once( plugin_dir_path( dirname( __FILE__ ) ) . '/libraries/action-scheduler/action-scheduler.php' );
/**
* The class responsible for registering custom user fields.
*/
@@ -143,8 +152,9 @@ class Partnerexpo_Core {
public function setup() {
Logger::init("PartnerEXPO Core", __("Megjegyezve, elrejtés", 'partnerexpo-core'), 'partnerexpo-core');
$crm_client = new CRMClient(Crypto::encryptSecret(CRM_AUTH));
Partnerexpo_Core_Integrations::add_hooks( $this->loader );
Partnerexpo_Core_Integrations::add_hooks( $this->loader, $crm_client );
$user_fields = new Partnerexpo_Core_User_Fields( $this->loader );