mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 13:43:38 +09:00
- small fixes;
- added some translations;
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
<?php
|
||||
|
||||
$all_options = wp_load_alloptions();
|
||||
<?php $all_options = wp_load_alloptions();
|
||||
|
||||
$count = 0;
|
||||
foreach ( $all_options as $k => $v ) {
|
||||
|
||||
if ( strstr( $k, 'um_cache_userdata_' ) !== false ) {
|
||||
$count++;
|
||||
}
|
||||
|
||||
}
|
||||
} ?>
|
||||
|
||||
?>
|
||||
|
||||
<p>Run this task from time to time to keep your DB clean.</p>
|
||||
<p><a href="<?php echo add_query_arg( 'um_adm_action', 'user_cache' ); ?>" class="button">Clear cache of <?php echo $count; ?> users</a></p>
|
||||
<p><?php _e( 'Run this task from time to time to keep your DB clean.', 'ultimate-member' ) ?></p>
|
||||
<p>
|
||||
<a href="<?php echo add_query_arg( 'um_adm_action', 'user_cache' ); ?>" class="button">
|
||||
<?php printf( __( 'Clear cache of %s users', 'ultimate-member' ), $count ) ?>
|
||||
</a>
|
||||
</p>
|
||||
Reference in New Issue
Block a user