Skip to content

Cleanup Options

JayWood edited this page Feb 24, 2017 · 1 revision

wp jw-random cleanup

--type=<post_type> - Default: post
Determines the post type of the generated posts.

--force - Default: false
Force deletes the posts, skips the trash.

--author=<id> - Default: 1
Sets the author ID of the posts, defaults to the site admin ( typically ID 1 ).

--tax=<taxonomy_slug>
What taxonomies to generate terms for, if not set, no terms will be created.

Taxonomy slugs can be separated by commas if you need more than one.

--site=<site_id>
IF this is set, and the site is multi-site enabled. A switch to blog occurs to this blog ID so posts are imported to this ID.

--media Shorthand for typing --type=attachment and will save you from typing a second command.

Clone this wiki locally