285 reputation
741
bio website
location
age
visits member for 3 years, 3 months
seen Mar 12 at 7:14

WordPress Consultant


Jan
23
revised Deleting sites and users automatically in multisite
added 2 characters in body
Jan
23
comment Deleting sites and users automatically in multisite
I changed that, however for some reason the code is removing the posts and pages of the main site in the multisite (id 1) and also the superadmin user (id 1). Any idea why?
Jan
22
comment Deleting sites and users automatically in multisite
Basically I need to clear out all users apart from the 3 specified in the array.
Jan
22
comment Deleting sites and users automatically in multisite
@Rarst added more info.
Jan
22
revised Deleting sites and users automatically in multisite
added 135 characters in body
Jan
21
comment Getting this code to work in Multisite
wordpress.stackexchange.com/questions/130705/…
Jan
21
asked Deleting sites and users automatically in multisite
Jan
21
comment Getting this code to work in Multisite
Still not working, updated the new version of the code I'm using above, can you check?
Jan
21
revised Getting this code to work in Multisite
added 1691 characters in body
Jan
21
comment Getting this code to work in Multisite
I'd like to remove the users of these blogs too, trying this code but it's not working, can you help? $users_to_keep = array( '1','4','43' ); $users = get_users( array( 'blog_id' => $val['blog_id'] ) ); // Remove all users except for the test site admins foreach ( $users as $user ) { if ( ! in_array( $user['ID'], $users_to_keep ) ) { wp_delete_user( $user['ID'] ); } }
Jan
20
accepted Retrieve a specific number of words from post_Content
Jan
20
comment Retrieve a specific number of words from post_Content
I guess I need a way of skipping the img tags altogether and counting only the words, so I won't get unbalanced tags.
Jan
18
asked Retrieve a specific number of words from post_Content
Jan
18
accepted Can I Prevent Enumeration of Usernames?
Jan
18
asked Having Multisite websites expire
Jan
13
awarded  Popular Question
Jan
2
comment Speed optimization on WP site, Remove query strings from static resources
I guess the most important question is whether I will see any speed improvements by doing this? If not I'd gladly leave things as they are.
Jan
2
accepted Speed optimization on WP site, Remove query strings from static resources
Jan
1
accepted Conditional loading of CSS for my plugin
Jan
1
asked Speed optimization on WP site, Remove query strings from static resources