piotrpress/wpml-composer
最新稳定版本:v0.2.0
Composer 安装命令:
composer require piotrpress/wpml-composer
包简介
This composer plugin enables installation of WPML (WordPress Multilingual) plugin and its components.
关键字:
README 文档
README
This composer plugin enables installation of WPML (WordPress Multilingual) plugin and its components.
Example
$ composer require wpml/sitepress-multilingual-cms:* $ composer require wpml/woocommerce-multilingual:*
NOTE: Package name can be any WPML component slug.
Installation
You need to follow these steps only once to install the plugin:
- Provide WPML
user_idandsubscription_keyfrom your account:
$ composer config -g http-basic.wpml.org <user_id> <subscription_key>
NOTE: using -g option is recommended to keep credentials outside of project's files.
- Allow the plugin execution:
$ composer config -g allow-plugins.piotrpress/wpml-composer true
- Add the plugin as a global composer requirement:
$ composer global require piotrpress/wpml-composer
Usage
The WPML plugin and its addons have a type set to wordpress-plugin and can be installed in custom location using for example Composer Installers:
{
"require": {
"wpml/sitepress-multilingual-cms": "*",
"wpml/woocommerce-multilingual": "*",
"composer/installers": "^2.0"
},
"config": {
"allow-plugins": {
"composer/installers": true
}
},
"extra": {
"installer-paths": {
"wp-content/plugins/{$name}/": [
"type:wordpress-plugin"
]
}
}
}
Requirements
- PHP >=
7.4version. - Composer ^
2.0version.
License
统计信息
- 总下载量: 331
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-12-10