MT - ET+ - Start the WooCommerce (or other ET+ ticket type) ticket number at something other than one
<?php
/**
* MT - ET+ - Start the WooCommerce (or other ET+ ticket type) ticket number at something other than one
*
* from https://gist.github.com/cliffordp/91223c67e30e648257e47e50349d81f4
* for https://theeventscalendar.com/support/forums/topic/change-ticket-number-starting-value/
*
* @return int
*/
function cliff_etplus_base_before_first_ticket_number() {
return 1000; // so first ticket number will be 1001
}
add_filter( 'tribe_tickets_plus_inital_ticket_number', 'cliff_etplus_base_before_first_ticket_number' ); // hook exists as of ET+ 4.4.6, April 2017