get_previous_comments_link [ WordPress Function ]
get_previous_comments_link ( $label = '' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: previous_comments_link, get_previous_posts_link, get_edit_comment_link, get_post_comments_feed_link, get_comments_link
Return the previous comments page link.
Source
<?php
function get_previous_comments_link( $label = '' ) {
if ( !is_singular() || !get_option('page_comments') )
return;
$page = get_query_var('cpage');
if ( intval($page) <= 1 )
return;
$prevpage = intval($page) - 1;
if ( empty($label) )
$label = __('« Older Comments');
return '<a href="' . esc_url( get_comments_pagenum_link( $prevpage ) ) . '" ' . apply_filters( 'previous_comments_link_attributes', '' ) . '>' . preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $label) .'</a>';
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- get_previous_comments_link (WordPress Function) - WPSeek.com
WordPress lookup for get_previous_comments_link, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - <?php /** * WordPress Link Template Functions * * @package ...
Label for comments link text. * @return string|null */ function get_previous_comments_link( $label = '' ) { if ( !is_singular() || !get_option(' page_comments') ) ...
core.svn.wordpress.org - #20319 ($page value not being defaulted to 1 in the absence of ...
$page value not being defaulted to 1 in the absence of cpage query var in get_next_comments_link()/get_previous_comments_link() ...
core.trac.wordpress.org - Docs for page link-template.php
get_previous_comments_link (line 1725). Return the previous comments page link. since: 2.7.1. string|null get_previous_comments_link ([string $label = '']) ...
phpdoc.wordpress.org