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.


Top ↑

Return Return

(stdClass) See LLMS_Comments::wp_comment_counts() for return object details.


Top ↑

Source Source

File: includes/class.llms.comments.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.37.12 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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