Forked from iWebbers/WordPress shortcode for 'Site name'
Last active
July 25, 2024 00:15
-
-
Save NorthTexasCreative/10e80fa92b6cad63111df0c4b02774c1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // Get WordPress site name via shortcode: [nf_site_name] | |
| function nf_site_name_shortcode() { | |
| return get_bloginfo('name'); | |
| } | |
| add_shortcode('nf_site_name','nf_site_name_shortcode'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment