X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/plugins/forminator/library
home
/
hikrsdyp
/
public_html
/
wp-content
/
plugins
/
forminator
/
library
/
??
..
??
abstracts
??
addon
??
calculator
??
class-abandonment.php
(4.65 KB)
??
class-api.php
(54.26 KB)
??
class-autofill-loader.php
(6.81 KB)
??
class-captcha-verification.php
(3.65 KB)
??
class-core.php
(23.94 KB)
??
class-database-tables.php
(7.54 KB)
??
class-export-result.php
(2.57 KB)
??
class-export.php
(60.8 KB)
??
class-forminator-hub-connector.php
(10.18 KB)
??
class-geo.php
(4.38 KB)
??
class-integration-loader.php
(19.33 KB)
??
class-loader.php
(2.54 KB)
??
class-migration.php
(28.51 KB)
??
class-modules.php
(1.98 KB)
??
class-page-cache.php
(8.05 KB)
??
class-protection.php
(1.03 KB)
??
class-reports.php
(7.53 KB)
??
class-shortcode-generator.php
(16.43 KB)
??
class-template-api.php
(7.54 KB)
??
class-upgrade.php
(1.66 KB)
??
external
??
field-autofill-providers
??
fields
??
gateways
??
helpers
??
lib
??
mixpanel
??
model
??
modules
??
protection
??
render
??
tagsubscriber
(1.02 MB)
Editing: class-upgrade.php
<?php /** * Forminator Upgrade * * @package Forminator */ if ( ! defined( 'ABSPATH' ) ) { die(); } /** * Class Forminator_Upgrade * * Handle any installation upgrade or install tasks */ class Forminator_Upgrade { /** * Initialise data before plugin is fully loaded * * @since 1.0 */ public static function init() { /** * Initialize the plugin data */ $old_version = get_option( 'forminator_version', false ); if ( $old_version ) { $version_changed = version_compare( $old_version, FORMINATOR_VERSION, 'lt' ); if ( $version_changed ) { update_option( 'forminator_version_upgraded', true ); } } else { $version_changed = true; } if ( $version_changed ) { // Update tables if required. Forminator_Database_Tables::install_database_tables(); Forminator_Database_Tables::insert_default_entries(); // Run status migration on version update. add_action( 'forminator_update_version', array( 'Forminator_Database_Tables', 'maybe_migrate_entry_status' ), 10, 2 ); add_action( 'admin_init', array( __CLASS__, 'flush_rewrite' ) ); // Update version. update_option( 'forminator_version', FORMINATOR_VERSION ); add_action( 'forminator_loaded', function () use ( $old_version ) { /** * Triggered when Forminator version is updated * * @param string FORMINATOR_VERSION New plugin version * @param string $old_version Old plugin version. */ do_action( 'forminator_update_version', FORMINATOR_VERSION, $old_version ); } ); } } /** * Flush rewrite * * @return void */ public static function flush_rewrite() { // Flush rewrite rules. flush_rewrite_rules(); } }
Upload File
Create Folder