• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / twentynineteen_comment_count() – Prints HTML with the comment count for the current post.

You appear to be a bot. Output may be restricted

Description

Prints HTML with the comment count for the current post.

Usage

twentynineteen_comment_count();

Parameters

Returns

void

Source

File name: twentynineteen/inc/template-tags.php
Lines:

1 to 11 of 11
  function twentynineteen_comment_count() {
    if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
      echo '<span class="comments-link">';
      echo twentynineteen_get_icon_svg( 'comment', 16 );

      /* translators: %s: Post title. Only visible to screen readers. */
      comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentynineteen' ), get_the_title() ) );

      echo '</span>';
    }
  }
 

 View on GitHub View on Trac

Published: 25th November 2019 | Last updated: 8th April 2020

Primary Sidebar

Information

Function name: twentynineteen_comment_count
Plugin ref: Twenty Nineteen
Version: 2.5
Sourcefile: inc/template-tags.php
File ref: inc/template-tags.php
Deprecated?: No
API Letters: C,T

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 6.3.1. PHP: 8.0.30
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites