content_url() WP 1.0
Retrieves the URL to the content directory.
Is the basis for:
get_theme_root_uri()
✈ 1 time = 0.000025s = very fast | 50000 times = 0.29s = very fast
Hooks in function
Return
String. Content URL link with optional path appended.
Usage
content_url( $path );
- $path(string)
- Path relative to the content URL.
Default: ''
Code of content url:
wp-includes/link-template.php
VER 5.0.3
Related Functions
From tag: Link (URL)
- admin_url()
- attachment_url_to_postid()
- comment_link()
- get_comments_link()
- get_comments_pagenum_link()
- get_edit_post_link()
- get_edit_term_link()
- get_home_url()
- get_next_comments_link()
- get_post_embed_url()
- get_post_permalink()