LLMS_Comments::modify_comment_stats( stdClass $stats )
Remove order notes from an existing comment count stats object.
Description Description
This method accepts a stats object, generated by another plugin (like WooCommerce) or using core information from get_comment_counts()
and then subtracts LifterLMS order note comments from the existing comment counts which would have included order notes in the counts.
Parameters Parameters
- $stats
-
(Required) Comment stats object. See the return of LLMS_Comments::wp_comment_counts() for object details.
Return Return
(stdClass) See LLMS_Comments::wp_comment_counts() for return object details.
Source Source
File: includes/class.llms.comments.php
Changelog Changelog
Version | Description |
---|---|
3.37.12 | Introduced. |