WordPress at Your Fingertips
function is not described

WC_Comments::delete_comments_count_cache() public WC 1.0

Delete comments count cache whenever there is new comment or the status of a comment changes. Cache will be regenerated next time WC_Comments::wp_count_comments() is called.

{} It's a method of the class: WC_Comments{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Comments::delete_comments_count_cache();

Code of WC_Comments::delete_comments_count_cache() WC 5.6.0

public static function delete_comments_count_cache() {
	delete_transient( 'wc_count_comments' );
}