Clear cached API reports when deleting shop order transients
This commit is contained in:
parent
17abdb223a
commit
7e2fa1bbd6
|
@ -351,6 +351,9 @@ function wc_delete_shop_order_transients( $post_id = 0 ) {
|
|||
}
|
||||
}
|
||||
|
||||
// clear API report transient
|
||||
$transients_to_clear[] = 'wc_admin_report';
|
||||
|
||||
// Clear transients where we have names
|
||||
foreach( $transients_to_clear as $transient ) {
|
||||
delete_transient( $transient );
|
||||
|
|
Loading…
Reference in New Issue