ActionScheduler_wpCommentLogger::delete_comment_count_cache()publicWC 1.0

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

Метод класса: ActionScheduler_wpCommentLogger{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$ActionScheduler_wpCommentLogger = new ActionScheduler_wpCommentLogger();
$ActionScheduler_wpCommentLogger->delete_comment_count_cache();

Код ActionScheduler_wpCommentLogger::delete_comment_count_cache() WC 7.1.0

public function delete_comment_count_cache() {
	delete_transient( 'as_comment_count' );
}