From 90f0c5fc2ee96a8c55893410ccc3654ab13e9d96 Mon Sep 17 00:00:00 2001 From: girishpanchal30 Date: Fri, 22 Nov 2024 17:59:10 +0530 Subject: [PATCH] fix: resolved all issue with latest release --- obfx_modules/companion-legacy/init.php | 6 +++--- obfx_modules/custom-fonts/init.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/obfx_modules/companion-legacy/init.php b/obfx_modules/companion-legacy/init.php index 76c1e612..343cc056 100644 --- a/obfx_modules/companion-legacy/init.php +++ b/obfx_modules/companion-legacy/init.php @@ -300,8 +300,8 @@ public function hooks() { } if ( $this->is_hestia() ) { - $this->loader->add_action( 'after_setup_theme', $this, 'hestia_require' ); - $this->loader->add_action( 'after_setup_theme', $this, 'hestia_fix_duplicate_widgets' ); + $this->hestia_require(); + $this->hestia_fix_duplicate_widgets(); $this->loader->add_action( 'wp_enqueue_scripts', $this, 'hestia_enqueue_clients_style' ); $this->loader->add_filter( 'hestia_clients_bar_default_content', $this, 'hestia_load_clients_default_content' ); $this->loader->add_filter( 'hestia_top_bar_alignment_default', $this, 'hestia_top_bar_default_alignment' ); @@ -310,7 +310,7 @@ public function hooks() { } if ( $this->is_hestia_pro() ) { - $this->loader->add_action( 'after_setup_theme', $this, 'hestia_fix_duplicate_widgets' ); + $this->hestia_fix_duplicate_widgets(); $this->loader->add_filter( 'hestia_clients_bar_default_content', $this, 'hestia_load_clients_default_content' ); $this->loader->add_filter( 'hestia_top_bar_alignment_default', $this, 'hestia_top_bar_default_alignment' ); } diff --git a/obfx_modules/custom-fonts/init.php b/obfx_modules/custom-fonts/init.php index 83510e5a..c1c01dc2 100644 --- a/obfx_modules/custom-fonts/init.php +++ b/obfx_modules/custom-fonts/init.php @@ -63,7 +63,7 @@ public function hooks() { $this->loader->add_action( 'admin_enqueue_scripts', $this, 'enqueue_media_scripts' ); $admin_instance = new Custom_Fonts_Admin(); - $this->loader->add_action( 'init', $admin_instance, 'create_taxonomy' ); + $admin_instance->create_taxonomy(); $this->loader->add_action( 'admin_menu', $admin_instance, 'add_to_menu' ); $this->loader->add_action( 'admin_head', $admin_instance, 'edit_custom_font_form' ); $this->loader->add_filter( 'manage_edit-obfx_custom_fonts_columns', $admin_instance, 'manage_columns' );