No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
vendor
.gitignore
CONTRIBUTING.md
README.md
autoload.php
composer.json
composer.lock
gulpfile.js
license.txt
package-whitelist.json
package.json
readme.txt
tribe-cli.php

README.md

tribe-cli

WP-CLI tools for Modern Tribe plugins.

Table of contents

Events

Events Generator

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

Arguments

  • count - integer - the total count of events to generate

Example

$ wp tribe events-generator generate --count=1000

Reset events

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.

Example

$ wp tribe events-generator reset

Tickets

RSVP tickets attendees generator

Requires Event Tickets installed and active version 4.5.4 or above. This command will generate attendees for a post with RSVP tickets.

Arguments

  • post_id - integer - attendees will be assigned to RSVP tickets on this post
  • count - integer - the number of RSVP replies to generate
  • tickets_min - integer - the minimum number of RSVP tickets to assign for each reply
  • tickets_max - integer - the maximum number of RSVP tickets to assign for each reply
  • ticket_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 RSVP ticket assigned to the post

Example

$ wp event-tickets generate-rsvp-attendees 23
$ wp event-tickets generate-rsvp-attendees 23 --count=89
$ wp event-tickets generate-rsvp-attendees 23 --tickets_min=3
$ wp event-tickets generate-rsvp-attendees 23 --tickets_min=3 --tickets_max=10
$ wp event-tickets generate-rsvp-attendees 23 --tickets_min=3 --tickets_max=10 --ticket_status=no
$ wp event-tickets generate-rsvp-attendees 23 --ticket_id=89

Reset RSVP tickets

This command will reset attendees for RSVP tickets assigned to a post.

Arguments

  • post_id - integer - RSVP attendees will be removed from this post
  • ticket_id - integer - only remove attendees for a specific RSVP ticket assigned to the post

Example

$ wp event-tickets reset-rsvp-attendees 23
$ wp event-tickets reset-rsvp-attendees 23 --ticket_id=89