I’m working on a multisite where we have to customize the activation template for new users. I thought there might be a filter for this text, but then I stumbled upon this: https://wordpress.stackexchange.com/questions/41329/customizing-wp-activate-php
This hacky solution requires me to make a page on every single subsite, but the multisite has 250 subsites. Is there another possible solution? Or is there a way to quickly create these using e.g. wp cli?
2
Answers
I think below solution will help to create quickly for all subsite
Solution:
step1 : Create one custom plugin and write a code to create page automatically.
step2: install and activate plugin as network active so it will automatically create on all subsites
step3: done
I found that
Multisite activated as subdomains eg. xxx.mysite.com uses header-wp-activate.php & footer-wp-activate.php from the activated theme of that site.
Multisite activated as subfolders eg. mysite.com/xxx uses header-wp-activate.php & footer-wp-activate.php from the main site theme.
If you have same theme across all sites then just add these files on the corresponding theme only.
If you have many unique themes, then write a script loop through the directories and copy both the files there.
header-wp-activate.php
footer-wp-activate.php
Output of my multisite wp-activate.php