LLMS_Comments::get_note_counts()

Retrieve order note comment counts.


Return Return

(array[])


Top ↑

Source Source

File: includes/class.llms.comments.php

	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
		);

	}


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.