Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 844 Bytes

File metadata and controls

24 lines (14 loc) · 844 Bytes

wp types association generate

Bulk generates associations. Posts involved in associations are created automatically.

OPTIONS

[--count-first=<number>] : How many items of the first part involved in the relationship to generate. Default: 1

[--count-second=<number>] : How many items of the second part involved in the relationship to generate for each one of the first part. Default: 10

[--post=<number>] : The ID of the first post of the association. If used, count-first parameter should be ommitted. If ommitted, a new post will be created.

[--relationship=<string>] : The relationship slug.

EXAMPLES

wp types association generate --count-first=2 --count-second=20 --relationship=relationship-slug wp types association generate --post=12 --count-second=40 --relationship=relationship-slug