wp-cliをインストールしている前提です。
wp post list --format=ids | xargs wp post update --comment_status=closed
wp post list --format=ids | xargs wp post update --ping_status=closed
More than 5 years have passed since last update.
wp-cliをインストールしている前提です。
wp post list --format=ids | xargs wp post update --comment_status=closed
wp post list --format=ids | xargs wp post update --ping_status=closed
Register as a new user and use Qiita more conveniently