function get_template_directory_uri() {}

Retrieve theme directory URI.

Return values

returns:Template directory URI.

Defined filters

  • template_directory_uri
    apply_filters( 'template_directory_uri', $template_dir_uri, $template, $theme_root_uri )

Source code

function get_template_directory_uri() {

	$template = get_template();

	$theme_root_uri = get_theme_root_uri( $template );

	$template_dir_uri = "$theme_root_uri/$template";

	return apply_filters( 'template_directory_uri', $template_dir_uri, $template, $theme_root_uri );



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: