WIP
This commit is contained in:
@@ -5,12 +5,9 @@ require __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
use ofc\Site;
|
||||
|
||||
# Declare a new Site object
|
||||
$site = new Site();
|
||||
|
||||
# Allow the Site object to be accessed in other files
|
||||
function site()
|
||||
function site(): Site
|
||||
{
|
||||
global $site;
|
||||
return $site;
|
||||
return Site::getInstance();
|
||||
}
|
||||
add_action("after_setup_theme", "site");
|
||||
|
||||
Reference in New Issue
Block a user