wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



comments_number › WordPress Function

Od0.71
Przestarzałyn/a
comments_number ( $zero = false, $one = false, $more = false, $post = 0 )
Parametry: (4)
  • (string|false) $zero Optional. Text for no comments. Default false.
    Wymagane: Nie
    Domyślny: false
  • (string|false) $one Optional. Text for one comment. Default false.
    Wymagane: Nie
    Domyślny: false
  • (string|false) $more Optional. Text for more than one comment. Default false.
    Wymagane: Nie
    Domyślny: false
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is the global `$post`.
    Wymagane: Nie
    Domyślny:
Zdefiniowane na:
Codex:
Dziennik zmian:
  • 5.4.0

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



Źródło

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