WP-CLI tools for Modern Tribe plugins.
Requires The Events Calendar installed and active version 4.5.4
or above.
This command will generate dummy events for TEC using the TEC API function: tribe_create_event
count
- integer - the total count of events to generate
$ wp tribe events-generator generate --count=1000
Requires The Events Calendar installed and active version 4.5.4
or above.
This command will reset all events in TEC. It deletes ALL Events, Organizers, and Venues.
$ wp tribe events-generator reset
Requires Event Tickets installed and active version 4.5.4
or above.
This command will generate attendees for a post with RSVP tickets.
post_id
- integer - attendees will be assigned to tickets on this postcount
- integer - the number of RSVP replies to generatetickets_min
- integer - the minimum number of RSVP tickets to assign for each replytickets_max
- integer - the maximum number of RSVP tickets to assign for each replyticket_status
- string - the status of all the RSVP replies; either empty or one of "yes" or "no"ticket_id
- integer - only generate attendees for a specific ticket assigned to the post
$ wp tribe event-tickets generate-rsvp-attendees 23
$ wp tribe event-tickets generate-rsvp-attendees 23 --count=89
$ wp tribe event-tickets generate-rsvp-attendees 23 --tickets_min=3
$ wp tribe event-tickets generate-rsvp-attendees 23 --tickets_min=3 --tickets_max=10
$ wp tribe event-tickets generate-rsvp-attendees 23 --tickets_min=3 --tickets_max=10 --ticket_status=no
$ wp tribe event-tickets generate-rsvp-attendees 23 --ticket_id=89
This command will reset attendees for RSVP tickets assigned to a post.
post_id
- integer - RSVP attendees will be removed from this postticket_id
- integer - only remove attendees for a specific RSVP ticket assigned to the post
$ wp tribe event-tickets reset-rsvp-attendees 23
$ wp tribe event-tickets reset-rsvp-attendees 23 --ticket_id=89
Requires Event Tickets Plus installed and active version 4.10.5
or above.
This command will generate attendees for a post with WooCommerce tickets.
post_id
- integer - orders will be attached to this post.count
- integer - the number of orders to generate.tickets_min
- integer - the minimum number of tickets per order.tickets_max
- integer - the maximum number of tickets per order.ticket_status
- string - the order status of the orders; Must be a valid WC order status (chosen randomly if left out).ticket_id
- integer - the ID of the ticket orders should be assigned to.no_create_users
- flag - use available subscribers to make orders and avoid creating users.
$ wp tribe event-tickets-plus generate-wc-orders 23
$ wp tribe event-tickets-plus generate-wc-orders 23 --count=89
$ wp tribe event-tickets-plus generate-wc-orders 23 --tickets_min=3
$ wp tribe event-tickets-plus generate-wc-orders 23 --tickets_min=3 --tickets_max=10
$ wp tribe event-tickets-plus generate-wc-orders 23 --tickets_min=3 --tickets_max=10 --ticket_status=no
$ wp tribe event-tickets-plus generate-wc-orders 23 --ticket_id=89
$ wp tribe event-tickets-plus generate-wc-orders 23 --ticket_id=89 --create_users=no
Removes all generated WC orders from a WooCommerce ticketed post.
post_id
- integer - orders will be removed from this ticketed post.ticket_id
- integer - only remove orders for this WooCommerce ticket attached to the post.
$ wp tribe event-tickets-plus reset-wc-orders 23
$ wp tribe event-tickets-plus reset-wc-orders 23 --ticket_id=89
Requires Community Tickets, installed and active version 4.7.0
or above.
This command will generate orders for a post with tickets. Payouts will be generated from those orders if enabled.
post_id
- integer - orders and payouts will be assigned to tickets on this post.count
- integer - the number of orders to generate. Defaults to 10.tickets_min
- integer - the minimum number of tickets to assign for each order.tickets_max
- integer - the maximum number of tickets to assign for each order.ticket_id
- integer - only generate orders for a specific ticket assigned to the post.status
- string - the order status of the orders; Must be a valid WC order status (chosen randomly if left out).
$ wp tribe payouts generate 23
$ wp tribe payouts generate 23 --count=9
$ wp tribe payouts generate 23 --tickets_min=3
$ wp tribe payouts generate 23 --tickets_min=3 --tickets_max=10
$ wp tribe payouts generate 23 --status=processing
$ wp tribe payouts generate 23 --count=8 --status=processing
$ wp tribe payouts generate 23 --ticket_id=89
Removes all Payouts from a WooCommerce order. Does NOT delete the order, use reset()
(below) for that!.
post_id
- integer - payouts will be removed from this order.
$ wp tribe payouts delete 23
Updates all Payouts associated wth a WooCommerce order. Currently only handles status changes!
post_id
- integer - orders will be removed from this ticketed post.status
- string - the desired order status of the payouts; Must be a valid Payout status.
$ wp tribe payouts update 23 --status=paid
Removes all generated WC orders and Payouts from a WooCommerce ticketed post.
post_id
- integer - orders will be removed from this ticketed post.
$ wp tribe payouts reset 23
Requires WP Parser installed and active. This command will build a JSON file for the purposes of importing into a WP Parser-active site.
plugin
- string - plugin directory name in wp-plugins that will be parsedoutput
- string - file path of the resulting JSON file
$ wp tribe doc build the-events-calendar
$ wp tribe doc build tribe-common --output=/tmp/tribe-common.json
This command will import the output of the doc build command.
plugin
- string - plugin directory name in wp-plugins that will be parsedfile
- string - file path of the JSON file used during import
$ wp tribe doc import the-events-calendar /tmp/the-events-calendar.json --user=1
$ wp tribe doc import tribe-common /tmp/tribe-common.json --user=1