From 5054cd0b6f79bf4f8d05d941f21de723655403bc Mon Sep 17 00:00:00 2001 From: Duskell Date: Thu, 29 Jan 2026 21:21:56 +0100 Subject: [PATCH] possibly fixed cpt --- includes/class-partnerexpo-core.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/includes/class-partnerexpo-core.php b/includes/class-partnerexpo-core.php index b0d13fb..a0f0fc0 100644 --- a/includes/class-partnerexpo-core.php +++ b/includes/class-partnerexpo-core.php @@ -78,8 +78,6 @@ class Partnerexpo_Core { $this->set_locale(); $this->define_admin_hooks(); $this->define_public_hooks(); - $this->define_cpts(); - } /** @@ -157,7 +155,6 @@ class Partnerexpo_Core { $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); - } /** @@ -172,7 +169,7 @@ class Partnerexpo_Core { $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' ); $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); - + $this->loader->add_action( 'init', $this, 'define_cpts' ); } private function define_cpts() {