تابع ووکامرسی wc_coupons_enabled بررسی اینکه کوپن ها فعال است ؟

تابع ووکامرسی wc_coupons_enabled – بررسی اینکه کوپن ها فعال است ؟
Syntax – سینتکس
(array) wc_coupons_enabled();
Usage – نحوه استفاده
if ( !function_exists( 'wc_coupons_enabled' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-coupon-functions.php'; } // NOTICE! Understand what this does before running. $result = wc_coupons_enabled();
Defined – محل تعریف
/includes/wc-coupon-functions.php
function wc_coupons_enabled() { return apply_filters( 'woocommerce_coupons_enabled', 'yes' === get_option( 'woocommerce_enable_coupons' ) ); }
versions – نسخه ها
از نسخه : 2.5.0
نسخه فعلی : 3.0.6
دیگر نسخه ها : 3.0.6 , 3.0.5 , 3.0.4 , 3.0.3 , 3.0.2
ارسال نظر