mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Improved load time
This commit is contained in:
@@ -29,10 +29,10 @@ class UM_Uninstall {
|
||||
|
||||
}
|
||||
|
||||
$admin = $ultimatemember->query->find_post_id('um_role','_um_core','admin');
|
||||
$member = $ultimatemember->query->find_post_id('um_role','_um_core','member');
|
||||
wp_delete_post( $admin, 1 );
|
||||
wp_delete_post( $member, 1 );
|
||||
$roles = get_posts( array( 'post_type' => 'um_role', 'number' => 999 ) );
|
||||
foreach( $roles as $role ) {
|
||||
wp_delete_post( $role->ID, 1 );
|
||||
}
|
||||
|
||||
if ( is_plugin_active( um_plugin ) ) {
|
||||
deactivate_plugins( um_plugin );
|
||||
|
||||
Reference in New Issue
Block a user