/** * Returns the total number of Subscriptions on the site. * * @since 1.4 */ public static function get_total_subscription_count() { global $wpdb; if (null === self::$total_subscription_count) { self::$total_subscription_count = self::get_subscription_count(); } return apply_filters('woocommerce_get_total_subscription_count', self::$total_subscription_count); }
/** * Returns the total number of Subscriptions on the site. * * @since 1.4 * @deprecated 2.0 */ public static function get_total_subscription_count() { _deprecated_function(__METHOD__, '2.0'); if (null === self::$total_subscription_count) { self::$total_subscription_count = self::get_subscription_count(); } return apply_filters('woocommerce_get_total_subscription_count', self::$total_subscription_count); }