johnpbloch / wordpress-core-installer

A composer installer for WordPress core so I can stop saying core is a wordpress-plugin type package.
https://packagist.org/packages/johnpbloch/wordpress-core-installer
GNU General Public License v2.0
207 stars 49 forks source link

[question] when the execution of the script is indicated? #22

Closed alber7rp closed 5 years ago

alber7rp commented 5 years ago

Hello, first congratulations on the package, it works perfectly. I just had a question about the way it works, in the code, where do you indicate that the script should be executed to make the directory change ?, that is, do you use some type of script as "post-package-install"? Thank you very much and apologize for this little doubt that I have.

johnpbloch commented 5 years ago

Thanks for stopping by! Composer itself has support for custom installers that can, among other things, change the installation location. You can read more on the subject in the Composer documentation: https://getcomposer.org/doc/articles/custom-installers.md

alber7rp commented 5 years ago

¡Muchas gracias!, le echaré un vistazo a la documentación que me has adjuntado, tengo que aprender más sobre Composer. De nuevo muchas gracias.