File "install.php"
Full Path: /home/romayxjt/public_html/wp-content/plugins/the-events-calendar/src/functions/utils/install.php
File size: 541 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
use Tribe__Events__Main as TEC;
/**
* Verifies that the current install of The Events Calendar is not
* a pre-existing setup, and trigger the activation of View V2.
*
* @since 4.9.13
*
* @return bool When to activate the View V2 or not.
*/
function tribe_events_is_new_install() {
$previous_versions = array_filter( (array) tribe_get_option( 'previous_ecp_versions', [] ) );
usort( $previous_versions, 'version_compare' );
$has_previous_versions = ! empty( $previous_versions );
return ! $has_previous_versions;
}