I want to improve my new Wordpress sites setup, and am working on a script to install Wordpress and common plugins.
My problem is, when I install a plugin from admin panel, by default, it installs a version of my plugin in the same language as Wordpress is. This is important, for example, in plugin Contact form 7 it sets up a contact form already configured in that language.
But if I use wp-cli
to download and activate the plugin, it downloads an English version.
wp plugin install contact-form-7 --activate
I thought I could use the URL provided in the official Wordpress plugin page, in my country, but as it has a specific version number, it makes it difficult automation to request always last version, which is my goal:
wp plugin install --activate https://downloads.wordpress.org/plugin/contact-form-7.5.1.3.zip
(anyway, this link also leads to an English version of the plugin, even if it was referred from an Spanish Wordpress site)
So, is there any workaorund for this?