- remove cache on upgrade user role;

- removed deprecated functions-
- text changes;
This commit is contained in:
nikitozzzzzzz
2018-04-05 14:38:20 +03:00
parent ee55c1fa9a
commit c6a00afa9a
6 changed files with 39 additions and 12 deletions
+9
View File
@@ -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.
*