Advertisements

get_template_directory_uri

Definition:
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 );

}

1741

Advertisements

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:

WordPress.com Logo

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

Google+ photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: