Plugin Directory

Changeset 2823737


Ignore:
Timestamp:
11/24/2022 04:14:46 PM (3 years ago)
Author:
spoddev2021
Message:

Version 1.x.x

Location:
wc-spod/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wc-spod/trunk/classes/SpodPodAdmin.php

    r2708945 r2823737  
    7777        add_submenu_page('wc-spod', __('System Report', 'wc-spod'), __('System Report', 'wc-spod'), 'manage_woocommerce', 'wc-spod-requirements', array(&$this, 'adminRequirments'), 1);
    7878        add_submenu_page('wc-spod', __('Support', 'wc-spod'), __('Support', 'wc-spod'), 'manage_woocommerce', 'wc-spod-support', array(&$this, 'adminSupport'), 2);
    79 
    80         //add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
    8179    }
    8280
     
    350348    }
    351349
     350    /**
     351     * build system report for internal plugin page
     352     * @since 1.1.0
     353     * @return string
     354     */
    352355    protected function buildDebugReport()
    353356    {
     
    380383        return $return_string;
    381384    }
     385
     386    /**
     387     * add content security rule for iframe
     388     * @param array $headers
     389     * @return array
     390     */
     391    public function updateCspRule($headers )
     392    {
     393        //header( "Content-Security-Policy: frame-ancestors 'none'; default-src 'self', script-src '*://*.example.com:*'" );
     394    }
    382395}
  • wc-spod/trunk/classes/SpodPodApiArticles.php

    r2821378 r2823737  
    7575        }
    7676        //$this->uploadImages($article->images, $product);
    77         $this->insertImageDataToTemp($article->images, $product);
     77        $this->insertImageDataToTemp($product, $article->images);
    7878    }   
    7979
     
    623623                    $records        =   $wpdb->get_results($query);
    624624                    if($records) {
    625                         $this->uploadProductImages($records, $product);
     625                        $this->uploadProductImages($product, $records);
    626626                    }
    627627                }
  • wc-spod/trunk/classes/SpodPodPlugin.php

    r2642282 r2823737  
    100100            $this->loader->add_filter('upload_mimes', $plugin_admin, 'addMimeType');
    101101        }
    102         $this->loader->add_action('wp_ajax_serversidefunction', $plugin_admin, 'serversideAjax' );
    103         $this->loader->add_action('admin_menu', $plugin_admin, 'addPages', 10,5);
    104         $this->loader->add_action('woocommerce_order_status_processing', $plugin_admin,  'hookOrderStatusProcessing', 10, 1 );
    105         $this->loader->add_action('woocommerce_order_status_cancelled', $plugin_admin,  'hookOrderStatusCancelled', 10, 1 );
    106         $this->loader->add_action('init', $plugin_admin,  'registerShippedOrderState', 10, 1 );
    107         $this->loader->add_action('admin_notices', $plugin_admin,  'showAdminNotices', 10, 1 );
    108         $this->loader->add_filter('wc_order_statuses', $plugin_admin,'addShippedOrderState' );
     102        $this->loader->add_action( 'wp_ajax_serversidefunction', $plugin_admin, 'serversideAjax' );
     103        $this->loader->add_action( 'admin_menu', $plugin_admin, 'addPages', 10,5);
     104        $this->loader->add_action( 'woocommerce_order_status_processing', $plugin_admin,  'hookOrderStatusProcessing', 10, 1 );
     105        $this->loader->add_action( 'woocommerce_order_status_cancelled', $plugin_admin,  'hookOrderStatusCancelled', 10, 1 );
     106        $this->loader->add_action( 'init', $plugin_admin,  'registerShippedOrderState', 10, 1 );
     107        $this->loader->add_action( 'admin_notices', $plugin_admin,  'showAdminNotices', 10, 1 );
     108        $this->loader->add_filter( 'wc_order_statuses', $plugin_admin,'addShippedOrderState' );
    109109
    110110    }
     
    118118    private function defineFrontendHooks() {
    119119        $plugin_admin = new SpodPodFrontend( $this->getPluginName(), $this->getVersion() );
    120         $this->loader->add_action('init', $plugin_admin,  'registerRewritePage', 11, 0 );
    121         $this->loader->add_action('query_vars', $plugin_admin,  'queryWebhookVars', 10, 1 );
    122         $this->loader->add_action('parse_request', $plugin_admin,  'parseWebhookVars', 10, 1 );
     120        $this->loader->add_action( 'init', $plugin_admin,  'registerRewritePage', 11, 0 );
     121        $this->loader->add_action( 'query_vars', $plugin_admin,  'queryWebhookVars', 10, 1 );
     122        $this->loader->add_action( 'parse_request', $plugin_admin,  'parseWebhookVars', 10, 1 );
    123123    }
    124124
  • wc-spod/trunk/wc-spod.php

    r2821380 r2823737  
    99 * Plugin URI:        https://www.spod.com/
    1010 * Description:       Connect your WooCommerce Shop to the leading provider of whitelabel print-on-demand services. Get an automatic product, order and order status synchronisation and a seamless integration into your WooCommerce setup ready within minutes.
    11  * Version:           1.2.2
     11 * Version:           1.2.3
    1212 * Author:            SPOD - Spreadshirt-Print-On-Demand
    1313 * Author URI:        https://www.spod.com
     
    2929 * Currently plugin version.
    3030 */
    31 define( 'SPOD_POD_VERSION', '1.2.2' );
     31define( 'SPOD_POD_VERSION', '1.2.3' );
    3232define( 'MIN_WORDPRESS_VERSION_REQUIRED', 4.8 );
    3333define( 'MIN_WOOCOMMERCE_VERSION_REQUIRED', 4.7);
Note: See TracChangeset for help on using the changeset viewer.