Skip to content

Commit 2ac9371

Browse files
committed
delete global stats transients when chapter metabox is saved
1 parent c390bb2 commit 2ac9371

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/queulat-cc-chapters-cpt-plugin/class-cc-chapters-metabox.php

+2
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ public function get_fields() : array
252252
}
253253
public function sanitize_data(array $data) : array
254254
{
255+
//Delete stats transient to update the global chapter stats
256+
delete_transient('ccgn_global_stats');
255257
$sanitized = [];
256258
foreach ($data as $key => $val) {
257259
switch ($key) {

0 commit comments

Comments
 (0)