Shortcode for Theme URL
Create a shortcode so I can reference the theme URL within the wp admin
// Add Shortcode
function site_theme_uri() {
$theme_uri = is_child_theme()
? get_stylesheet_directory_uri()
: get_template_directory_uri();
return trailingslashit( $theme_uri );
}
add_shortcode( 'theme-images', 'site_theme_uri' );