File Editor
Directories:
.. (Back)
Files:
array.php
install.php
labels.php
Create New File
Create
Edit File: install.php
<?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; }
Save Changes
Rename File
Rename