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.


Top ↑

Return Return

(array) An empty array.


Top ↑

Source Source

File: includes/ld-misc-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.