1 2 3 4 5 6 7 8 9 10 11 12 13 14
| defined( 'ABSPATH' ) || exit;
if ( wcmp_is_allowed_product_type( 'subscription' ) ) :
global $wp_locale;
$chosen_price = get_post_meta( $id, '_subscription_price', true );
$chosen_interval = get_post_meta( $id, '_subscription_period_interval', true );
$chosen_sign_up_fee = get_post_meta( $id, '_subscription_sign_up_fee', true );
$chosen_subscription_length = get_post_meta( $id, '_subscription_length', true );
$chosen_trial_length = WC_Subscriptions_Product::get_trial_length( $id );
$chosen_trial_period = WC_Subscriptions_Product::get_trial_period( $id );
$price_tooltip = __( 'Choose the subscription price, billing interval and period.', 'woocommerce-subscriptions' ); |