a working react/php dynamic wordpress block example integrated with the Vite build process

This commit is contained in:
2025-12-10 19:44:32 +00:00
parent b16bd77355
commit 917150bbe6
15 changed files with 247 additions and 34 deletions

View File

@@ -60,7 +60,7 @@ autoload_psr4('Admin');
autoload_psr4('Ajax');
function autoload_psr4_blocks() {
$path = __dir__ . '/resources/views/blocks/*';
$path = __dir__ . '/resources/views/acf-blocks/*';
$namespace = 'Blocks\\';
foreach(glob($path, GLOB_ONLYDIR) as $directory) {