custom post type and ACF json syncing

This commit is contained in:
Steve Ross
2024-11-06 22:42:07 +00:00
parent d0733bfc01
commit feebb7c94a
8 changed files with 13592 additions and 0 deletions

View File

@@ -42,6 +42,26 @@ if (! function_exists('\Roots\bootloader')) {
\Roots\bootloader()->boot();
/*
|--------------------------------------------------------------------------
| Autoload PSR-4 files
|--------------------------------------------------------------------------
*/
function autoload_psr4($name) {
$path = __dir__ . '/app/' . $name . '/*.php';
$namespace = 'App\\' . $name;
foreach(glob($path) as $filename) {
$class = $namespace . '\\' . basename($filename, '.php');
new $class();
}
}
autoload_psr4('PostTypes');
autoload_psr4('ACF');
autoload_psr4('Admin');
/*
|--------------------------------------------------------------------------
| Register Sage Theme Files