admin管理员组文章数量:1122832
you need to add a constant when building a docker file wp-config.php
define( 'AS3CF_SETTINGS', serialize( array(
'provider' => 'aws',
'access-key-id' => '*****',
'secret-access-key' => '****',
tried using command - wp config set AS3CF_SETTINGS [' "asd" => "asd", "dsa" => "dsa"'], it passes the string(
please tell me is it possible to transfer this as an array?
you need to add a constant when building a docker file wp-config.php
define( 'AS3CF_SETTINGS', serialize( array(
'provider' => 'aws',
'access-key-id' => '*****',
'secret-access-key' => '****',
tried using command - wp config set AS3CF_SETTINGS [' "asd" => "asd", "dsa" => "dsa"'], it passes the string(
please tell me is it possible to transfer this as an array?
Share Improve this question asked Sep 28, 2020 at 8:29 pechapecha 111 bronze badge 3 |1 Answer
Reset to default 0The only good way I could find to do this was with the --raw
option.
wp config set 'AS3CF_SETTINGS' "array( 'sample' => 'bar', 'c' => '***' )" --raw
wp config set 'AS3CF_SETTINGS' "serialize( array( 'foo' => 'bar', 'c' => '***' ) )" --raw
# etc...
本文标签: wp cliHow to add an array to a command quotwp config setquot
版权声明:本文标题:wp cli - How to add an array to a command "wp config set"? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736296499a1929810.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
--format=json
for example: wordpress.stackexchange.com/a/345118/30597 – leymannx Commented Sep 28, 2020 at 9:22