get_search_comments_feed_link [ WordPress Function ]
get_search_comments_feed_link ( $search_query = '', $feed = '' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: get_post_comments_feed_link, get_search_feed_link, post_comments_feed_link, get_next_comments_link, get_comments_link
Retrieve the permalink for the comments feed of the search results.
Source
<?php
function get_search_comments_feed_link($search_query = '', $feed = '') {
global $wp_rewrite;
if ( empty($feed) )
$feed = get_default_feed();
$link = get_search_feed_link($search_query, $feed);
$permastruct = $wp_rewrite->get_search_permastruct();
if ( empty($permastruct) )
$link = add_query_arg('feed', 'comments-' . $feed, $link);
else
$link = add_query_arg('withcomments', 1, $link);
$link = apply_filters('search_feed_link', $link, $feed, 'comments');
return $link;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/get search comments feed link « WordPress ...
Function Reference/get search comments feed link ... Usage. <?php get_search_comments_feed_link( $search_query, $feed ) ?> ...
codex.wordpress.org - #11153 (Search query should be urlencoded in - WordPress Trac
get_search_feed_link() and get_search_comments_feed_link() do not urlencod the search query properly. They return URLs like http://example.com/?s=あ ...
core.trac.wordpress.org - get_search_comments_feed_link() WordPress function reference ...
Retrieve the permalink for the comments feed of the search results.
queryposts.com - 常用函数-get_search_comments_feed_link() | WordPress啦!
<?php get_search_comments_feed_link( $search_query, $feed ) ?> ... 源文件. get_search_comments_feed_link()位于wp-includes/link-template.php中。
www.wordpress.la