Change a subsite Admin role of a WordPress Multisite after 24 hours registering

You probably want the built-in cron scheduler. You’ve got two options: either set up a one-off job to downgrade the user 24 hours after registering using wp_schedule_single_event() instead set up a daily job with wp_schedule_event() to check all blogs for users without KYC data and deactivate them if necessary. You should probably change your code … Read more

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