Multisite sub-site dashboard redirects to /wp-admin/
Multisite sub-site dashboard redirects to /wp-admin/
Multisite sub-site dashboard redirects to /wp-admin/
I was using the wrong action hook. Replaced send_headers with init and it works. Wrong add_action(‘send_headers’, array($this, ‘do_things’)); Right add_action(‘init’, array($this, ‘do_things’));
The 404 error you are seeing is from Apache. Which means you did not configure Apache properly. It is not an IP address problem at this point. Possible problems – .htaccess file is not working or Apache is not allowing .htaccess file. One way to see if your htaccess file is being process is by … Read more
This WPSE answer led me to the $meta argument for wpmu_create_blog. That led me to this Support thread showing that $meta can include template and stylesheet arguments which seem to contain the folder name for the theme you want (just like the “Template” field in a child theme’s style.css head section). I’m having a hard … Read more
This feature request that was never implemented appears to address my issue: dynamic unloading and loading of plugins So now that I’ve determined that I cannot access the plugin functions of another site in the network, I could possibly make the plugin accessible across the network.
Have you tried using the WordPress MU Domain Mapping Plugin?
The database Initially you should update all references to your old domain in the database. The following SQL will take care of that, but first read these notes – This SQL assumes that you are using the default wp_ table prefix. Simply change this to your chosen table prefix if you have changed it. Replace … Read more
You probably need to allow the mime types for them to be allowed to upload. https://www.robertwent.com/blog/adding-custom-mime-types-for-wordpress-uploads/ //The following goes in a themes functions file or a custom hooks plugin function so_387865_custom_upload_mimes ( $existing_mimes ) { $existing_mimes[‘epub’] = ‘application/epub+zip’; $existing_mimes[‘mobi’] = ‘application/x-mobipocket-ebook’; return $existing_mimes; } add_filter(‘upload_mimes’, ‘so_387865_custom_upload_mimes’);
My subsites accidentally went from one multisite network to another. How do I change it back?
This code was tested in a local testing Multisite. Seems ok, but found a minor glitch: – after running it all drafts/pending posts disappear from the listing page, but appear again after a refresh, no idea why… Although I believe it’s pretty harmless, please backup your database before running this /* * Turn off trackback/pingbacks … Read more