registered as $handle => $style ) { if ( isset( array_flip( $wp_styles->queue )[ $handle ] ) ) { $slug = str_replace( 'wp-block-', '', $handle ); $file = DIR . 'build/css/blocks/' . $slug . '.css'; if ( file_exists( $file ) ) { wp_add_inline_style( $handle, file_get_contents( $file ) ); } } } } }