Created
August 26, 2014 09:04
-
-
Save bluvertigo/51819520e638ef7582cd to your computer and use it in GitHub Desktop.
Shortcode per inserire URL del sito e URL del child di wordpress.
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
function url_child_shortcode() { | |
return get_stylesheet_directory_uri(); | |
} | |
add_shortcode('url_child','url_child_shortcode'); | |
function url_base_shortcode() { | |
return get_site_url(); | |
} | |
add_shortcode('url_base','url_base_shortcode'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment