Tribe__Events__Tickets__Eventbrite__Updater::migrate_legacy_settings()

Update Eventbrite default category option name

Contents


Source

File: src/Tribe/Updater.php

	public function migrate_legacy_settings() {

		$tec_options = Tribe__Settings_Manager::get_options();
		if ( ! is_array( $tec_options ) ) {
			return;
		}

		foreach ( $tec_options as $key => $value ) {
			if ( 'imported_post_status[eventbrite]' === $key ) {
				$tribe_options[ 'tribe_aggregator_default_eventbrite_post_status' ] = $value;
				unset( $tribe_options[ $key ] );
			}
		}

		Tribe__Settings_Manager::set_options( $tec_options );

	}

Top ↑

Changelog

Changelog
Version Description
4.5 Introduced.