require_once $file, glob( DIR . 'includes/*.php' ) ); array_map( fn( $file ) => require_once $file, glob( DIR . 'includes/blocks/*.php' ) ); array_map( fn( $file ) => require_once $file, glob( DIR . 'includes/extensions/*.php' ) ); foreach ( glob( DIR . 'build/blocks/**/*.php' ) as $build ) { $src = str_replace( '/build/', '/src/', $build ); if ( file_exists( $src ) ) { require_once $src; } else { require_once $build; } } if ( ! function_exists( 'wptt_get_webfont_url' ) ) { require_once DIR . 'vendor/wptt/webfont-loader/wptt-webfont-loader.php'; }