File/wp-includes/link-template.php

Description
Functions
adjacent_post_link (line 593)
void adjacent_post_link ( $format,  $link, [ $in_same_cat = false], [ $excluded_categories = ''], [ $previous = true])
  • $format
  • $link
  • $in_same_cat
  • $excluded_categories
  • $previous
content_url (line 860)

Return the content url

  • return: Content url link with optional path appended
  • since:

    2.6

    Returns the url to the content directory

string content_url ([string $path = ''])
  • string $path: Optional path relative to the content url
edit_comment_link (line 516)
void edit_comment_link ([ $link = 'Edit This'], [ $before = ''], [ $after = ''])
  • $link
  • $before
  • $after
edit_post_link (line 485)
void edit_post_link ([ $link = 'Edit This'], [ $before = ''], [ $after = ''])
  • $link
  • $before
  • $after
get_adjacent_post (line 542)
void get_adjacent_post ([ $in_same_cat = false], [ $excluded_categories = ''], [ $previous = true])
  • $in_same_cat
  • $excluded_categories
  • $previous
get_attachment_link (line 166)
void get_attachment_link ([ $id = false])
  • $id
get_author_feed_link (line 322)
void get_author_feed_link ( $author_id, [ $feed = ''])
  • $author_id
  • $feed
get_category_feed_link (line 354)

get_category_feed_link() - Get the feed link for a given category

Returns a link to the feed for all post in a given category. A specific feed can be requested or left blank to get the default feed.

  • return: Link to the feed for the category specified by $cat_id
  • since: 2.5
string get_category_feed_link (int $cat_id, [string $feed = ''])
  • int $cat_id: ID of a category
  • string $feed: Feed type
get_day_link (line 226)
void get_day_link ( $year,  $month,  $day)
  • $year
  • $month
  • $day
get_edit_comment_link (line 500)
void get_edit_comment_link ([ $comment_id = 0])
  • $comment_id
get_edit_post_link (line 445)
void get_edit_post_link ([ $id = 0], [ $context = 'display'])
  • $id
  • $context
get_feed_link (line 246)
void get_feed_link ([ $feed = ''])
  • $feed
get_month_link (line 210)
void get_month_link ( $year,  $month)
  • $year
  • $month
get_next_post (line 538)
void get_next_post ([ $in_same_cat = false], [ $excluded_categories = ''])
  • $in_same_cat
  • $excluded_categories
get_next_posts_page_link (line 672)
void get_next_posts_page_link ([ $max_page = 0])
  • $max_page
get_pagenum_link (line 618)
void get_pagenum_link ([ $pagenum = 1])
  • $pagenum
get_page_link (line 128)
void get_page_link ([ $id = false], [ $leavename = false])
  • $id
  • $leavename
get_permalink (line 46)
void get_permalink ([ $id = 0], [ $leavename = false])
  • $id
  • $leavename
get_post_comments_feed_link (line 275)
void get_post_comments_feed_link ([ $post_id = ''], [ $feed = ''])
  • $post_id
  • $feed
get_previous_post (line 534)
void get_previous_post ([ $in_same_cat = false], [ $excluded_categories = ''])
  • $in_same_cat
  • $excluded_categories
get_previous_posts_page_link (line 703)
void get_previous_posts_page_link ()
get_search_comments_feed_link (line 429)
void get_search_comments_feed_link ([ $search_query = ''], [ $feed = ''])
  • $search_query
  • $feed
get_search_feed_link (line 413)
void get_search_feed_link ([ $search_query = ''], [ $feed = ''])
  • $search_query
  • $feed
get_shortcut_link (line 746)
void get_shortcut_link ()
get_tag_feed_link (line 384)
void get_tag_feed_link ( $tag_id, [ $feed = ''])
  • $tag_id
  • $feed
get_year_link (line 197)
void get_year_link ( $year)
  • $year
includes_url (line 840)

Return the includes url

  • return: Includes url link with optional path appended
  • since:

    2.6

    Returns the url to the includes directory

string includes_url ([string $path = ''])
  • string $path: Optional path relative to the includes url
next_posts (line 684)
void next_posts ([ $max_page = 0])
  • $max_page
next_posts_link (line 688)
void next_posts_link ([ $label = 'Next Page »'], [ $max_page = 0])
  • $label
  • $max_page
next_post_link (line 589)
void next_post_link ([ $format = '%link »'], [ $link = '%title'], [ $in_same_cat = false], [ $excluded_categories = ''])
  • $format
  • $link
  • $in_same_cat
  • $excluded_categories
permalink_anchor (line 31)
void permalink_anchor ([ $mode = 'id'])
  • $mode
plugins_url (line 885)

Return the plugins url

  • return: Plugins url link with optional path appended
  • since:

    2.6

    Returns the url to the plugins directory

string plugins_url ([string $path = ''])
  • string $path: Optional path relative to the plugins url
posts_nav_link (line 727)
void posts_nav_link ([ $sep = ' — '], [ $prelabel = '« Previous Page'], [ $nxtlabel = 'Next Page »'])
  • $sep
  • $prelabel
  • $nxtlabel
post_comments_feed_link (line 314)

post_comments_feed_link() - Output the comment feed link for a post.

Prints out the comment feed link for a post. Link text is placed in the anchor. If no link text is specified, default text is used. If no post ID is specified, the current post is used.

  • return: Link to the comment feed for the current post
  • since: 2.5
string post_comments_feed_link ([string $link_text = ''], [int $post_id = ''], [ $feed = ''])
  • string $link_text: Descriptive text
  • int $post_id: Optional post ID. Default to current post.
  • $feed
post_permalink (line 123)
void post_permalink ([ $post_id = 0], [ $deprecated = ''])
  • $post_id
  • $deprecated
previous_posts (line 714)
void previous_posts ()
previous_posts_link (line 718)
void previous_posts_link ([ $label = '« Previous Page'])
  • $label
previous_post_link (line 585)
void previous_post_link ([ $format = '« %link'], [ $link = '%title'], [ $in_same_cat = false], [ $excluded_categories = ''])
  • $format
  • $link
  • $in_same_cat
  • $excluded_categories
the_permalink (line 4)
void the_permalink ()
user_trailingslashit (line 17)

Conditionally adds a trailing slash if the permalink structure

has a trailing slash, strips the trailing slash if not

string user_trailingslashit ($string $string, [$type_of_url $type_of_url = ''])
  • $string $string: string a URL with or without a trailing slash
  • $type_of_url $type_of_url: string the type of URL being considered (e.g. single, category, etc) for use in the filter
_get_page_link (line 144)
void _get_page_link ([ $id = false], [ $leavename = false])
  • $id
  • $leavename

Documentation generated on Fri, 12 Sep 2008 21:09:11 -0400 by phpDocumentor 1.4.1