learndash_remove_comments( array $comments = array(), int $post_id )
Removes all comments for learndash post types.
Description Description
Fires on ‘comments_array’ hook.
Parameters Parameters
- $comments
-
(Optional) An array of comments for a post ID.
Default value: array()
- $post_id
-
(Optional) Post ID.
Return Return
(array) An empty array.
Source Source
File: includes/ld-misc-functions.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |