0

i'm using this command for update in command line using wp-cli tool.

wp post update 12349 --meta_input='{"opalestate_ppt_parking":"2"}'
--tax_input='{array('opalestate_statuschecklist' => 'rent')}' --url=http://greencamping.default.local/ --allow-root

The meta_input works, but the tax_input dont, give me this error:

PHP Warning: Invalid argument supplied for foreach() in /opt/bitnami/wordpress/wp-includes/post.php on line 3508

In official wiki wordpress, says the use is with array ( https://developer.wordpress.org/cli/commands/post/update/ )

I need an assistance, thanks

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.