Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Created February 4, 2024 17:26
Show Gist options
  • Save kimcoleman/ba889dd7b125375b8281866c80fa4bb3 to your computer and use it in GitHub Desktop.
Save kimcoleman/ba889dd7b125375b8281866c80fa4bb3 to your computer and use it in GitHub Desktop.
Register a rounded card with shadow block style
<?php
/**
* Register a rounded card with shadow block style
*/
$rounded_card_block_types = array( 'core/group', 'core/columns' );
foreach ( $rounded_card_block_types as $rounded_card_block_type ) {
register_block_style(
$rounded_card_block_type,
array(
'name' => 'rounded-card-box',
'label' => __( 'Rounded Card', 'pmpro' ),
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment