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 agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.