تابع wc_update_240_options بروزرسانی گزینه های ووکامرس به نسخه 2.4.0

تابع wc_update_240_options بروزرسانی گزینه های ووکامرس به نسخه 2.4.0

تابع ووکامرسی wc_update_240_options – بروزرسانی گزینه های ووکامرس به نسخه 2.4.0

Syntax – سینتکس

wc_update_240_options(); 

Usage – نحوه استفاده

if ( !function_exists( 'wc_update_240_options' ) ) { 
    require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-update-functions.php'; 
} 
 
  
// NOTICE! Understand what this does before running. 
$result = wc_update_240_options(); 
    

Defined – محل تعریف

/includes/wc-update-functions.php

function wc_update_240_options() { 
    /** 
     * Coupon discount calculations. 
     * Maintain the old coupon logic for upgrades. 
     */ 
    update_option( 'woocommerce_calc_discounts_sequentially', 'yes' ); 
} 

versions – نسخه ها

از نسخه : 3.0.2

نسخه فعلی : 3.0.6

دیگر نسخه ها : 3.0.6 , 3.0.5 , 3.0.4 , 3.0.3 , 3.0.2

ارسال نظر

جهت استفاده از کد حتما از تگ pre استفاده نمایید .

contact us