PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
woocommerce-conversion-tracking
/
includes
<?php /** * Plugin Upgrade Routine * * @since 2.0 */ class WCCT_Upgrades { /** * The upgrades * * @var array */ private static $upgrades = array( '2.0' => 'upgrades/upgrade-2.0.php', ); /** * Get the plugin version * * @return string */ public function get_version() { return get_option( 'wcct_version', false ); } /** * Check if the plugin needs any update * * @return boolean */ public function needs_update() { $version = $this->get_version(); // may be it's the first install if ( ! $version ) { return false; } if ( version_compare( $version, WCCT_VERSION, '<' ) && array_key_exists( WCCT_VERSION, self::$upgrades ) ) { return true; } return false; } /** * Perform all the necessary upgrade routines * * @return void */ function perform_updates() { $installed_version = $this->get_version(); $path = trailingslashit( dirname( __FILE__ ) ); foreach ( self::$upgrades as $version => $file ) { if ( version_compare( $installed_version, $version, '<' ) ) { include $path . $file; update_option( 'wcct_version', $version ); } } update_option( 'wcct_version', WCCT_VERSION ); } }
[+]
..
[-] class-event-dispatcher.php
[edit]
[-] class-admin.php
[edit]
[-] class-ajax.php
[edit]
[+]
upgrades
[-] class-welcome-20.php
[edit]
[-] class-upgrades.php
[edit]
[+]
views
[-] integration.php
[edit]
[-] class-integration-manager.php
[edit]
[-] class-abstract-integration.php
[edit]
[+]
integrations
[-] class-integration-pro-features.php
[edit]
[-] class-wedevs-insights.php
[edit]