In wordpress folder, run commands:
for post_id in $(wp post list --post_type=product --post_status=publish --format=ids); do
wp post update $post_id --ping_status="closed"
done
Above commands mean “do nothing”. But you can edit to do something.
In wordpress folder, run commands:
for post_id in $(wp post list --post_type=product --post_status=publish --format=ids); do
wp post update $post_id --ping_status="closed"
done
Above commands mean “do nothing”. But you can edit to do something.