Update 1.2.2

This commit is contained in:
ultimatemember
2015-04-15 16:59:27 +02:00
parent 5e281fbeaf
commit 7b9b59ea8d
32 changed files with 1375 additions and 135 deletions
+11
View File
@@ -1,5 +1,16 @@
<?php
/***
*** @when role is saved
***/
function um_admin_delete_role_cache($post_id, $post){
if(get_post_type( $post_id ) == 'um_role'){
$slug = $post->post_name;
delete_option("um_cached_role_{$slug}");
}
}
add_action('save_post', 'um_admin_delete_role_cache', 1111, 2);
/***
*** @delete users need confirmation
***/