Created
May 29, 2013 00:11
-
-
Save peb7268/5667088 to your computer and use it in GitHub Desktop.
WordPress: get theme directory in content editor - 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
function get_theme_dir(){ | |
$dir = get_bloginfo('stylesheet_directory'); | |
return $dir; | |
} | |
add_shortcode('get_theme_dir', 'get_theme_dir'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment