Multisite subdomain microsite on secondary domain

After you create the sub-site, go into the Site Settings (via the Network Admin) and change the URL for the sub-site to https://event2.domain.com . That’s the same way that you would assign another domain name to a sub-site. For example, if the main site is www.domain.com, sub-site 1 would be www.domain.com/subsiteone (you decided the subfolder … Read more

Iterating over every multisite / theme and list the pages

due to Rick Hellewells comment I could write a code, which iterates over every blog (as a blog is a new mulitiste site) and outputs it’s site on plugin activation. See this link: https://wisdmlabs.com/blog/how-to-list-posts-from-all-blogs-on-wordpress-multisite/ As every site has it’s own theme, the $temp variable can hold the wp_get_theme command (you could also extract the site’s … Read more

Map WP Multisite blog.example.com to anotherdomain.com/blog?

You can set up Caddy to reverse proxy requests to the Multisite installation: In your Caddyfile, add a reverse_proxy directive for the Multisite: somedomain.com/blog { reverse_proxy blog.example.com } This will forward all requests to somedomain.com/blog to the Multisite installation at blog.example.com. Next, update the WordPress Multisite configuration to use the new domain: In your WordPress … Read more

Multisite subsite expiration

Since my need is two-fold, I found these answers here with a bit more searching. To add to the Edit Site page, the best option is to add another ‘tab’ to that page. I found an answer here: Add site options UI in Multisite Sites > Infos page , which referenced a tutorial by one … Read more

Redirect to Multisite site 2 if site 1 has a setting

If you are implementing a global functionality for your entire multisite/sub-sites like what you describe, you should implement this as mu-plugins instead adding the cuztomization inside a theme file, just create a file like in wp-content/mu-plugins/GlobalConfig.php which holds the customization you want and will take effect globally, unless you want this customization for only specific … Read more

The wpmu_blogs_columns filter is not working

I tested your code, fixing the $colum_name issue and it works ok for me. add_filter(‘wpmu_blogs_columns’, function ($site_columns) { $site_columns[‘expired_Date’] = ‘Expires’; return $site_columns; }); add_action(‘manage_sites_custom_column’, function ($column_name, $blog_id) { if ( ‘expired_Date’ === $column_name ){ $current_blog_details = get_blog_details(array(‘blog_id’ => $blog_id)); // do_action( ‘qm/debug’, [‘Details:’, $current_blog_details ] ); echo ucwords($current_blog_details->last_updated); } }, 10, 2); You have … Read more