mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 06:33:50 +09:00
- remove cache on upgrade user role;
- removed deprecated functions- - text changes;
This commit is contained in:
@@ -650,6 +650,15 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Remove cache for all users
|
||||
*/
|
||||
function remove_cache_all_users() {
|
||||
global $wpdb;
|
||||
$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'um_cache_userdata_%'" );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method lets you set a user. For example, to retrieve a profile or anything related to that user.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user