From 7d6341f0512e31c95500ae3ec8c74895a172cb80 Mon Sep 17 00:00:00 2001 From: Kurtis Holsapple Date: Wed, 7 May 2025 20:53: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 6c09bd1..77538e9 100644 --- a/functions.php +++ b/functions.php @@ -9,4 +9,4 @@ function site(): Site { return Site::getInstance(); } -add_action('plugins_loaded', 'site'); +add_action('after_setup_theme', 'site');