wp-includes/block-supports/block-style-variations.php:19Determines the block style variation names within a CSS class string.
$class_stringstringarray|nullfunction wp_get_block_style_variation_name_from_class( $class_string ) { if ( ! is_string( $class_string ) ) { return null; } preg_match_all( '/\bis-style-(?!default)(\S+)\b/', $class_string, $matches ); return $matches[1] ?? null;}Introduced in 6.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/block-supports/block-style-variations.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.