Changeset 2957362
- Timestamp:
- 08/23/2023 02:07:57 PM (3 years ago)
- Location:
- outshifter-export/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (1 diff)
-
index.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
outshifter-export/trunk/README.txt
r2954790 r2957362 4 4 Requires at least: 5.0 5 5 Tested up to: 6.2 6 Stable tag: 3. 06 Stable tag: 3.1 7 7 Requires PHP: 7.0 8 8 License: GPLv3 -
outshifter-export/trunk/index.php
r2954790 r2957362 8 8 * Author: Reachu 9 9 * Author URI: https://reachu.io/ 10 * Version: 3. 010 * Version: 3.1 11 11 */ 12 12 13 13 14 define('OSEWCPHJC_PLUGIN_PATH', __DIR__); … … 560 561 561 562 public static function handle_save_product($postId) 562 { //, $post, $update563 { 563 564 $updating_post_id = 'update_product_' . $postId; 564 565 if (false === ($updating_post = get_transient($updating_post_id))) { 565 566 $userApiKey = self::getUserApiKey(); 566 if ( $userApiKey !== '') {567 if (!empty($userApiKey)) { 567 568 $syncEnabled = get_post_meta($postId, OSEWCPHJC_FIELD_SYNC_ENABLED, true); 568 569 self::log('Product ' . $postId . ' sync reachu: ' . $syncEnabled . ' (' . $userApiKey . ')'); … … 572 573 self::deleteProductByPostId($postId, $userApiKey); 573 574 } 574 } 575 set_transient($updating_post_id, $productId, 5); 576 } 577 } 575 } else { 576 self::log("No API key found for Product {$postId}. Skipping sync."); 577 } 578 set_transient($updating_post_id, $postId, 5); 579 } 580 } 581 578 582 579 583 public static function my_custom_style_reachu()
Note: See TracChangeset
for help on using the changeset viewer.