-
-
Save kimcoleman/ba889dd7b125375b8281866c80fa4bb3 to your computer and use it in GitHub Desktop.
Register a rounded card with shadow block style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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