mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
Update 1.2.2
This commit is contained in:
@@ -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
|
||||
***/
|
||||
|
||||
Reference in New Issue
Block a user