get_author_feed_link [ WordPress Function ]
get_author_feed_link ( $author_id, $feed = '' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: get_author_link, get_category_feed_link, get_term_feed_link, get_author_rss_link, get_tag_feed_link
Retrieve the feed link for a given author.
Returns a link to the feed for all posts by a given author. A specific feed can be requested or left blank to get the default feed.
Source
<?php
function get_author_feed_link( $author_id, $feed = '' ) {
$author_id = (int) $author_id;
$permalink_structure = get_option('permalink_structure');
if ( empty($feed) )
$feed = get_default_feed();
if ( '' == $permalink_structure ) {
$link = home_url("?feed=$feed&author=" . $author_id);
} else {
$link = get_author_posts_url($author_id);
if ( $feed == get_default_feed() )
$feed_link = 'feed';
else
$feed_link = "feed/$feed";
$link = trailingslashit($link) . user_trailingslashit($feed_link, 'feed');
}
$link = apply_filters('author_feed_link', $link, $feed);
return $link;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/get author feed link « WordPress Codex
Description. Retrieve the feed link for a given author. Returns a link to the feed for all posts by a given author. A specific feed can be requested or left blank to get ...
codex.wordpress.org - get_author_feed_link (WordPress Function) - WPSeek.com
WordPress lookup for get_author_feed_link, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - get_author_feed_link | A HitchHackers guide through WordPress
Feb 11, 2011 ... function get_author_feed_link( $author_id, $feed = '' ) { $author_id = (int) $ author_id; $permalink_structure = get_option('permalink_structure'); ...
hitchhackerguide.com - 常用函数-get_author_feed_link() | WordPress啦!
常用函数-get_author_feed_link(). 说明. 检索所给定作者的feed链接。 返回给定作者 所有文章的feed链接。为获取默认链接。可请求指定feed或将留空白。
www.wordpress.la