wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



comments_number › WordPress Function

Seit0.71
Veraltetn/v
comments_number ( $zero = false, $one = false, $more = false, $post = 0 )
Parameter: (4)
  • (string|false) $zero Optional. Text for no comments. Default false.
    Erforderlich: Nein
    Standard: false
  • (string|false) $one Optional. Text for one comment. Default false.
    Erforderlich: Nein
    Standard: false
  • (string|false) $more Optional. Text for more than one comment. Default false.
    Erforderlich: Nein
    Standard: false
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is the global `$post`.
    Erforderlich: Nein
    Standard:
Definiert in:
Codex:
Changelog:
  • 5.4.0

Displays the language string for the number of comments the current post has.



Quellcode

function comments_number( $zero = false, $one = false, $more = false, $post = 0 ) {
	echo get_comments_number_text( $zero, $one, $more, $post );
}