Plugin Directory

Changeset 2914726


Ignore:
Timestamp:
05/19/2023 10:38:39 AM (3 years ago)
Author:
w3scloud
Message:

bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • w3swoozoho/trunk/w3swoozoho.php

    r2894227 r2914726  
    3333}
    3434
    35 if ( ! function_exists( 'w3sc_woo_zoho' ) ) {
    36     // Create a helper function for easy SDK access.
    37     function w3sc_woo_zoho() {
    38         global $w3sc_woo_zoho;
     35// if ( ! function_exists( 'w3sc_woo_zoho' ) ) {
     36// // Create a helper function for easy SDK access.
     37// function w3sc_woo_zoho() {
     38//      global $w3sc_woo_zoho;
    3939
    40         if ( ! isset( $w3sc_woo_zoho ) ) {
    41             // Include Freemius SDK.
    42             require_once dirname( __FILE__ ) . '/freemius/start.php';
     40//      if ( ! isset( $w3sc_woo_zoho ) ) {
     41//          // Include Freemius SDK.
     42//          require_once dirname( __FILE__ ) . '/freemius/start.php';
    4343
    44             $w3sc_woo_zoho = fs_dynamic_init(
    45                 array(
    46                     'id'                  => '8942',
    47                     'slug'                => 'w3swoozoho',
    48                     // 'premium_slug'        => 'w3swoozoho-premium',
    49                     'type'                => 'plugin',
    50                     'public_key'          => 'pk_7499bc4bb60ee8ca7b6b23846a543',
    51                     'is_premium'          => false,
    52                     // If your plugin is a serviceware, set this option to false.
    53                     'has_premium_version' => false,
    54                     'has_paid_plans'      => false,
    55                     'is_org_compliant'    => false,
    56                     // 'menu'                => array(
    57                     // 'slug'   => 'w3swoozoho',
    58                     // 'parent' => array(
    59                     // 'slug' => 'options-general.php',
    60                     // ),
    61                     // ),
    62                 )
    63             );
    64         }
     44//          $w3sc_woo_zoho = fs_dynamic_init(
     45//              array(
     46//                  'id'                  => '8942',
     47//                  'slug'                => 'w3swoozoho',
     48//                  // 'premium_slug'        => 'w3swoozoho-premium',
     49//                  'type'                => 'plugin',
     50//                  'public_key'          => 'pk_7499bc4bb60ee8ca7b6b23846a543',
     51//                  'is_premium'          => false,
     52//                  // If your plugin is a serviceware, set this option to false.
     53//                  'has_premium_version' => false,
     54//                  'has_paid_plans'      => false,
     55//                  'is_org_compliant'    => false,
     56//                  // 'menu'                => array(
     57//                  // 'slug'   => 'w3swoozoho',
     58//                  // 'parent' => array(
     59//                  // 'slug' => 'options-general.php',
     60//                  // ),
     61//                  // ),
     62//              )
     63//          );
     64//      }
    6565
    66         return $w3sc_woo_zoho;
    67     }
     66//      return $w3sc_woo_zoho;
     67// }
    6868
    69     // Init Freemius.
    70     w3sc_woo_zoho();
    71     // Signal that SDK was initiated.
    72     do_action( 'w3sc_woo_zoho_loaded' );
    73 }
     69// // Init Freemius.
     70// w3sc_woo_zoho();
     71// // Signal that SDK was initiated.
     72// do_action( 'w3sc_woo_zoho_loaded' );
     73// }
    7474
    7575/*----------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.