Working: Script that automatically modifies WordPress installation folder structure

I just created a script which runs post update in composer that essentially takes a clean WP install and modifies the folder structure. Essentially it removes the initial install (but first grabs the database credentials from wp-config), downloads WordPress (specified in composer) to a directory called ‘core’, renames the ‘wp-content’ folder to ‘content’ then updates the database/wp-config/index in order for your install to know where everything is.
I’m not the best in PHP and it’s VERY rough so I’d welcome anyone to contribute to the project. Anyway, it’s suffice for me for the time being.

Works on DesktopServer too without having to modify any .env files

Thanks for sharing :thumbsup:

1 Like