0

i am currently working on a project which i hope will result in a e-commerce platform as Shopify. The reason im building this project, are so my customers are able to pay monthly for day Wordpress site.

To the question, how can i make it possible to automatically generate a Wordpress installation, when my customers make an account on my website. I want this installation to be created on generated sub-domain.

Thanks in advanced.
Markus

1

You'll want to setup a Multis-site network - https://codex.wordpress.org/Create_A_Network

If you know your way around code what you'll need to do is use the wpmu_create_blog() function - https://codex.wordpress.org/WPMU_Functions/wpmu_create_blog - to create a blog whenever a user registers.

What I would recommend would be a front-end form so when someone registers they can enter the name of the site they want this way you hook into the form save action to then create the site based on the user. Also doing so this way you can add a security check in place to prevent spam. If on the other hand you create a new blog whenever "anyone" registers this could be exploited fairly easily.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.