LLMS_Comments::get_note_counts()
Retrieve order note comment counts.
Return Return
(array[])
Source Source
File: includes/class.llms.comments.php
172 173 174 175 176 177 178 179 180 181 182 183 184 185 | protected static function get_note_counts() { global $wpdb ; return $wpdb ->get_results( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching " SELECT comment_approved, COUNT ( * ) AS num_comments FROM { $wpdb ->comments} WHERE comment_type = 'llms_order_note' GROUP BY comment_approved; ", ARRAY_A ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.12 | Introduced. |