Black Friday

30% off premium pluginsEnds 2 December

Shop the sale
Simple Wishlists

How can we help?

Search the documentation or ask the AI agent anything about the plugin.

WP-CLI commands

Simple WishlistsUpdated

The plugin adds a wp swlp command to WP-CLI. Use it to run maintenance on large stores, see statistics, import from other wishlist plugins and fill a development site with test data. Run wp help swlp for the full help.

wp swlp recount

Rebuilds the “wishlisted by” counter of every product from the saved items. This is the same as Recount now on the Tools page.

# Bash
wp swlp recount --batch-size=500

wp swlp cleanup

Deletes every expired guest wishlist now, instead of waiting for the daily task. Option: --batch-size (default 200).

# Bash
wp swlp cleanup

wp swlp stats

Shows wishlists with items, guest wishlists with items, saved items, unique products, adds in the last 30 days and adds to cart in the last 30 days, followed by the most wishlisted products.

  • --top=<number>: how many products to list (default 10).
  • --format=<format>: table (default), csv, json or yaml.
# Bash
wp swlp stats --top=20 --format=csv

wp swlp migrate

Imports customer wishlists from another plugin. The source is yith, ti, wpc or woo-wishlists.

  • --dry-run: count what would be imported without changing anything.
  • --batch-size=<number>: source lists per batch (default 100).
# Bash
wp swlp migrate yith --dry-run
wp swlp migrate yith

wp swlp seed (development only)

Creates test wishlists of random published products for performance testing. Test customers are created as swlp-seed-*@example.com. Never run it on a live store. It refuses to run without --yes.

  • --lists=<number>: how many wishlists to create.
  • --items-per-list=<number>: how many products to add to each.
  • --guests: create guest wishlists instead of customers, which is much faster.
# Bash
wp swlp seed --lists=1000 --items-per-list=5 --guests --yes

Related

Was this article helpful?