Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 588 Bytes

File metadata and controls

24 lines (14 loc) · 588 Bytes

wp types relationship create

Creates a relationship between two post types.

OPTIONS

[--first=<cpt>] : The first post type slug. Required.

[--second=<cpt>] : The second post type slug. Required.

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

[--cardinality=<string>] : Relationship type: Many to many, one to many or one to one. Can take values: .., <number>..*, <number>..<number>. Defaults to ..

EXAMPLES

wp types relationship create --first=post --second=attachment --slug=featured-video --cardinality=1..*