Created
November 16, 2015 14:44
-
-
Save stephenbelyea/97d5b1f7f07a33606aa3 to your computer and use it in GitHub Desktop.
WP Theme Directory 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
// Drop this in theme's functions.php file. | |
// Use shortcode [path_theme] from visual editor. | |
function custom_shortcode_path_theme( $atts ){ | |
return get_stylesheet_directory_uri(); | |
} | |
add_shortcode( 'path_theme', 'custom_shortcode_path_theme' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment