From 1bcb82fb81aebb973d035900f80e1d81a460e7c4 Mon Sep 17 00:00:00 2001 From: Kurtis Holsapple Date: Wed, 7 May 2025 20:52:32 -0700 Subject: [PATCH] better singleton instance --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index de4e3a7..6c09bd1 100644 --- a/functions.php +++ b/functions.php @@ -9,4 +9,4 @@ function site(): Site { return Site::getInstance(); } -add_action('init', 'site'); +add_action('plugins_loaded', 'site');