projects
/
WP-Plugins
/
glm-member-db.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8abed2f
)
Clear cache when delete member
author
Steve Sutton
<steve@gaslightmedia.com>
Fri, 4 Oct 2019 15:22:59 +0000
(11:22 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Fri, 4 Oct 2019 15:22:59 +0000
(11:22 -0400)
Call the clear cache when deleting a member.
setup/adminHooks.php
patch
|
blob
|
history
diff --git
a/setup/adminHooks.php
b/setup/adminHooks.php
index
08e3fe0
..
9c509a6
100755
(executable)
--- a/
setup/adminHooks.php
+++ b/
setup/adminHooks.php
@@
-446,6
+446,8
@@
add_action( 'glm-member-db-delete-member', function( $memberId ){
// Delete Member.
$this->wpdb->delete( GLM_MEMBERS_PLUGIN_DB_PREFIX . 'members', array( 'id' => $memberId ), array( '%d' ) );
+ glmClearShortcodeCache();
+
}, 10, 1 );
/**