sakura/app/functions.php

21 lines
553 B
PHP
Raw Normal View History

2021-07-09 18:28:29 +08:00
<?php
// namespace Sakura;
define('SAKURA_VERSION', wp_get_theme()->get('Version'));
define('SAKURA_TEXT_DOMAIN', wp_get_theme()->get('TextDomain'));
// PHP loaders
require_once(__DIR__ . '/loader.php');
new \Sakura\Helpers\SetupHelper();
new \Sakura\Helpers\WhoopsHelper();
2021-07-13 16:15:03 +08:00
new \Sakura\Helpers\ViteHelper();
new \Sakura\Helpers\AdminPageHelper();
2021-07-09 18:28:29 +08:00
new \Sakura\Helpers\CustomMenuMetaFieldsHelper();
new \Sakura\Helpers\CommentHelper();
new \Sakura\Helpers\PostQueryHelper('post');
2021-07-09 18:28:29 +08:00
new \Sakura\Routers\ApiRouter();
new \Sakura\Routers\PagesRouter();