• I’m making a plugin on the local server and I needed to run composer install inside the plugin to work. How can I automatically run when installing this plugin on wordpress site?

    when i upload the plugin in wordpress, i receive this:
    can’t be initialized because the Composer dependencies were not installed. Reinstall the plugin or run composer install.

    my plugin need vendor files to work

    • This topic was modified 2 years, 8 months ago by Vinicius.
Viewing 1 replies (of 1 total)
  • I would not recommend developing wordpress plugins with such dependency. As already answered in your earlier question here, I would recommend you to integrate only ready compiled libraries into your plugin. At least hostings have composer installed so that would work.

Viewing 1 replies (of 1 total)
  • The topic ‘how can i run composer when install my plugin’ is closed to new replies.