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



comments_array › Filtr WordPress Hooks

Od2.1.0
Przestarzałyn/a
› apply_filters( 'comments_array', $comments_flat, $post->ID )
Parametry: (2)
  • () comments Array of comments supplied to the comments template.
    Wymagane: Tak
  • () post_id Post ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the comments array.





Źródło

$wp_query->comments = apply_filters( 'comments_array', $comments_flat, $post->ID );