LLMS_Comments::delete_comments_count_cache()
Delete transient data when inserting new comments or updating comment status
Description Description
Next time wp_count_comments is called it’ll be automatically regenerated
Return Return
(void)
Source Source
File: includes/class.llms.comments.php
public static function delete_comments_count_cache() {
delete_transient( self::$count_transient_key );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.37.12 | Use class variable to access the transient key name. |
| 3.0.0 | Introduced. |