How to organize my js files

Generally speaking, combining all of the global scripts will boost performance, but so will enqueueing JS selectively – meaning if a script is only used on one CPT or template, you should only enqueue it there. Look into conditionally enqueueing JS in your functions.php. You can target specific sites by blog_id and target specific post … Read more

Page Builders and WP Multisite

Take a look at THIS. You can link all your sites to a main site’s dashboard and control a lot of things from one central location. I used MainWP before and thought it was fairly nice. I had each site setup with its own WP install using the same custom theme. I created an options … Read more

Delete user from multisite when removed from subsite

But the trick seems to be when to fire it. This is correct! When remove_user_from_blog fires, the removal has not happened yet, rather it’s about to happen and this is your chance to step in and do things beforehand, e.g. cleanup. The wpmu_delete_user function should be the one to go i guess. Yes, that would … Read more

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