本文整理匯總了PHP中WC_Subscriptions::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP WC_Subscriptions::init方法的具體用法?PHP WC_Subscriptions::init怎麽用?PHP WC_Subscriptions::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WC_Subscriptions
的用法示例。
在下文中一共展示了WC_Subscriptions::init方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: format_total
}
/**
* Wrapper around @see wc_format_decimal() which was called @see woocommerce_format_total() prior to WooCommerce 2.1.
*
* @since version 1.4.6
*/
public static function format_total($number)
{
global $woocommerce;
if (function_exists('wc_format_decimal')) {
return wc_format_decimal($number);
} else {
// WC < 2.1
return woocommerce_format_total($number);
}
}
/* Deprecated Functions */
/**
* Was called when a plugin is activated using official register_activation_hook() API
*
* Upgrade routine is now in @see maybe_activate_woocommerce_subscriptions()
*
* @since 1.0
*/
public static function activate_woocommerce_subscriptions()
{
_deprecated_function(__CLASS__ . '::' . __FUNCTION__, '1.1', __CLASS__ . '::maybe_activate_woocommerce_subscriptions()');
}
}
WC_Subscriptions::init();