File Editor
Directories:
.. (Back)
Admin
Attendee_Registration
CSV_Importer
Cache
Commerce
Editor
Events
JSON_LD
Migration
Promoter
REST
RSVP
Repositories
Service_Providers
Shortcodes
Status
Tabbed_View
Validator
Files:
Abstract_Attendance_Totals.php
Assets.php
Attendance.php
Attendance_Totals.php
Attendee_Repository.php
Attendees.php
Attendees_Table.php
Data_API.php
Editor.php
Event_Repository.php
Global_ID.php
Global_Stock.php
Legacy_Provider_Support.php
Main.php
Metabox.php
Plugin_Register.php
Privacy.php
Query.php
RSVP.php
Redirections.php
Service_Provider.php
Templates.php
Theme_Compatibility.php
Ticket_Object.php
Ticket_Repository.php
Tickets.php
Tickets_Handler.php
Tickets_View.php
Updater.php
Version.php
Create New File
Create
Edit File: Updater.php
<?php /** * Class Tribe__Tickets__Updater * * @since 4.7.1 * @since 4.10.2 - uses Tribe__Updater in common library instead of Tribe__Events__Tribe * */ class Tribe__Tickets__Updater extends Tribe__Updater { protected $version_option = 'event-tickets-schema-version'; /** * Force upgrade script to run even without an existing version number * The version was not previously stored for Filter Bar * * @since 4.7.1 * * @return bool */ public function is_new_install() { return false; } /** * Returns an array of callbacks that should be called * every time the version is updated. * * @since 4.12.0 * * @return array */ public function get_constant_update_callbacks() { return [ [ $this, 'migrate_4_12_hide_attendees_list' ], ]; } /** * Trigger setup of cron task to migrate the hide attendees list meta for block/shortcode enabled posts. * * @since 4.12.0 */ public function migrate_4_12_hide_attendees_list() { /** @var \Tribe\Tickets\Migration\Queue_4_12 $migration */ $migration = tribe( 'tickets.migration.queue_4_12' ); // Trigger adding task to cron if it hasn't already been completed. if ( 'complete' !== $migration->get_current_offset() ) { $migration->register_scheduled_task(); } } }
Save Changes
Rename File
Rename