Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$block_styles = [
'core/button' => [
'fill-white' => __( 'Fill White', 'frost' ),
'outline-white' => __( 'Outline White', 'frost' )
]
];
foreach ( $block_styles as $block => $styles ) {
foreach ( $styles as $name => $label ) {
register_block_style( $block, [
'name' => $name,
'label' => $label
] );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment