Plugin Directory

Changeset 3166142


Ignore:
Timestamp:
10/09/2024 10:14:10 PM (18 months ago)
Author:
campation
Message:

update 1.2.6

Location:
ebook-store-affiliate
Files:
164 added
4 edited

Legend:

Unmodified
Added
Removed
  • ebook-store-affiliate/trunk/cron/estaff-cron.php

    r3161770 r3166142  
    55add_filter( 'cron_schedules', 'estaff_custom_cron_intervals');
    66function estaff_custom_cron_intervals( $schedules ) {
    7    if(!isset($schedules['hourly']))           
     7
     8   if(!isset($schedules['every-1-minutes']))   $schedules['every-1-minutes']  = array('interval' => 60, 'display' => htmlspecialchars_decode(esc_html__('Once every minute',"campation-postoffice")));
     9   if(!isset($schedules['daily']))             
    810      $schedules['daily'] = array('interval' => 60*60*24, 'display' => esc_html__('Once every day',"ebook-store-affiliate"));
    911   return $schedules;
  • ebook-store-affiliate/trunk/ebook-store-affiliate.php

    r3163728 r3166142  
    1212 * Plugin URI:        https://campation.com/ebook-store-affiliate/
    1313 * Description:       Connect to the giant ebook store of World of Digitals, enhance your content, earn affiliate commissions with 4+ mio ebooks and create backlinks for SEO
    14  * Version:           1.2.5
     14 * Version:           1.2.6
    1515 * Author:            Campation LLC
    1616 * Author URI:        https://campation.com/
     
    4949
    5050// constants
    51 define("ESTAFFVERSION","1.2.5");       // change also in readme.txt
     51define("ESTAFFVERSION","1.2.6");       // change also in readme.txt
    5252define("ESTAFFVERSIONPHP","7.4");
    5353define("ESTAFFPLUGINSLUG","ebook-store-affiliate/ebook-store-affiliate.php");
     
    6565
    6666
    67    // activation / deactivation of plugin
     67// activation / deactivation of plugin
    6868include_once ABSPATH.'wp-admin/includes/plugin.php';
     69include_once("includes/estaff-functions.php");
    6970if(!is_plugin_active('ebook-store-affiliate/ebook-store-affiliate.php' ) )
    7071   {
     
    7879      estaff_cron_activate();
    7980      flush_rewrite_rules();
     81      estaff_api_register("activate");
    8082      }
    8183   }
    8284else     
    83    register_deactivation_hook( __FILE__, 'estaff_cron_deactivate');
     85   {
     86   register_deactivation_hook( __FILE__, 'estaff_deactivation');
     87   function estaff_deactivation ()
     88      {
     89      estaff_cron_deactivate();
     90      flush_rewrite_rules();
     91      estaff_api_register("deactivate");
     92      }
     93   }
    8494   
    8595   
     
    93103         {
    94104         if ($each_plugin==$current_plugin_path_name)
     105            {
    95106            estaff_db_install();
     107            estaff_api_register("update");
     108            }
    96109         }
    97110      }
     
    134147include_once("frontend/includes/estaff-shortcode.php");
    135148include_once("cron/estaff-cron.php");
    136 include_once("includes/estaff-functions.php");
    137149include_once("includes/estaff-kses-functions.php");
    138150include_once("includes/estaff-woocommerce.php");
  • ebook-store-affiliate/trunk/includes/estaff-functions.php

    r3161770 r3166142  
    8989   return(array(9999999999));     
    9090   }
     91
     92
     93function estaff_api_register($action)
     94   {
     95   $url = 'https://worldofdigitals.com/wp-content/plugins/WoE/api/affiliate-api-register.php';
     96   $response = wp_remote_post( $url, array(
     97            'method'      => 'POST',
     98            'timeout'     => 45,
     99            'redirection' => 5,
     100            'httpversion' => '1.0',
     101            'blocking'    => true,
     102            'headers'     => array(),
     103            'body'        => array(
     104               'domain'       => wp_parse_url(home_url())['host'],
     105               'action'       => $action,
     106               'secret'       => ESTAFFSECRETKEY
     107               ),
     108            'cookies'     => array()
     109               )
     110            );
     111   if(is_wp_error($response))
     112      {
     113      $error_message = $response->get_error_message();
     114      error_log("Ebook Store Affiliate: Something went wrong with API: ".$error_message);
     115      wp_die();
     116      }
     117   }
     118
     119
    91120?>
  • ebook-store-affiliate/trunk/readme.txt

    r3163728 r3166142  
    55Requires at least: 6.0
    66Tested up to: 6.6.2
    7 Stable tag: 1.2.5
     7Stable tag: 1.2.6
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    103103
    104104== Changelog ==
     1051.2.5 enhanced product update cron
    1051061.2.5 minor changes in Javascript
    1061071.2.4 minor changes
Note: See TracChangeset for help on using the changeset viewer.