Last active
November 12, 2019 09:56
-
-
Save vanaf1979/691806df61193dd82922ce772d94b7f7 to your computer and use it in GitHub Desktop.
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 | |
function register_uppercase_heading() { | |
register_block_style( | |
'core/heading', | |
array( | |
'name' => 'uppercase-heading', | |
'label' => 'Uppercase', | |
'inline_style' => '.is-style-uppercase-heading { text-transform: uppercase; }' | |
) | |
); | |
} | |
add_action( 'after_setup_theme' , 'register_uppercase_heading' ); | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment