ucfirst( basename( $cat_dir ) ) ) ); foreach ( (array) glob( $cat_dir . '/*.php' ) as $pattern_file ) { // phpcs:ignore WordPressVIPMinimum.Files.IncludingFile.UsingVariable $pattern = require $pattern_file; $name = 'airo-wp/' . basename( $cat_dir ) . '/' . basename( $pattern_file, '.php' ); register_block_pattern( $name, $pattern ); } } } }