Created
July 5, 2022 16:42
-
-
Save tdmrhn/88088552d4de21a86c23003c1ad364f3 to your computer and use it in GitHub Desktop.
Blocksy Get Site Name/Title with Shortcode
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 | |
add_shortcode( 'my_site_title', function () { | |
return get_bloginfo( 'name' ); | |
} ); | |
// Usage; [my_site_title] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment