Created
July 23, 2022 09:18
-
-
Save Yorlinq/6a995e816cf236ebadbdba810f409aa8 to your computer and use it in GitHub Desktop.
Shortcode for 'Blog url' - WordPress
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
// Shortcode for 'Blog url': [yl_blog_url] | |
function yl_blog_url_shortcode() { | |
return get_bloginfo('url'); | |
} | |
add_shortcode('yl_blog_url','yl_blog_url_shortcode'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment