WordPress multisite not work wp-admin

When did you first install Multisite? The .htaccess you’re using appears to be from WordPress 3.4 and older. If you started with 3.5 or newer, here’s the one you should be using: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] … Read more

Add the site’s name as prefix when adding new users? Multisite

I have noticed that the code our friend shares has an error. Add the prefix twice. I share other code with this error resolved. <?php add_filter( ‘pre_user_login’, ‘sneakily_add_prefix_to_username’ ); function sneakily_add_prefix_to_username( $username ) { if ( ! current_user_can( ‘manage_network’ ) ) { $blog_id = get_current_blog_id(); $blog_details = get_blog_details( $blog_id ); $sanitized_path = str_replace( “https://wordpress.stackexchange.com/”, ”, … Read more

Wait ajax to complete before continue loop

I’ve modified my codes based on Jory Hogeveen comments, and it solved my problem. What I do is, to not using the regular loop but instead use a recursive function that calls itself after it finishes calling for the request. For those who are looking for the same answer, please see below. var users_info = … Read more

Migrating wordpress sites through localhost and ubuntu

Migrating WordPress is not that a big deal. The only tricky part is if the website changes domain, e.g. from https://domain.com to https.//newdomain.com. As general instructions: Pack up the WordPress directory using tar You have to create a package to transfer over to the new location. To do this navigate inside the main wp directory … Read more