block-styles.php 585 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Quadrat Theme: Block Styles
  4. *
  5. * @package Seedlet
  6. * @since 1.0.0
  7. */
  8. if ( ! function_exists( 'quadrat_register_block_styles' ) ) :
  9. function quadrat_register_block_styles() {
  10. if ( function_exists( 'register_block_style' ) ) {
  11. /**
  12. * Register block styles
  13. */
  14. register_block_style(
  15. 'core/cover',
  16. array(
  17. 'name' => 'quadrat-cover-diamond',
  18. 'label' => __( 'Diamond', 'quadrat' ),
  19. 'style_handle' => 'quadrat-cover-diamond',
  20. )
  21. );
  22. }
  23. }
  24. endif;
  25. add_action( 'after_setup_theme', 'quadrat_register_block_styles' );