'product', 'posts_per_page' => -1, 'post_status' => 'any', 'orderby' => 'title', 'order' => 'ASC', ); $products = get_posts( $args ); // Load product if exists $product = null; if ( $product_id > 0 ) { $product = wc_get_product( $product_id ); } ?>

'#fde8d8', 'fg' => '#b85c20', ), array( 'bg' => '#dbeafe', 'fg' => '#1d4ed8', ), array( 'bg' => '#ede9fe', 'fg' => '#6d28d9', ), array( 'bg' => '#d1fae5', 'fg' => '#065f46', ), array( 'bg' => '#fce7f3', 'fg' => '#9d174d', ), array( 'bg' => '#fef9c3', 'fg' => '#854d0e', ), ); ?>

'days', 'label' => __( 'Day', 'subscription' ), ), array( 'value' => 'weeks', 'label' => __( 'Week', 'subscription' ), ), array( 'value' => 'months', 'label' => __( 'Month', 'subscription' ), ), array( 'value' => 'years', 'label' => __( 'Year', 'subscription' ), ), ); $period_options = array( array( 'value' => 'days', 'label' => __( 'Day', 'subscription' ), ), array( 'value' => 'weeks', 'label' => __( 'Week', 'subscription' ), ), array( 'value' => 'months', 'label' => __( 'Month', 'subscription' ), ), array( 'value' => 'years', 'label' => __( 'Year', 'subscription' ), ), ); ?>
'subscrpt_billing_period', 'id' => 'subscrpt-billing-period-select', 'value' => $billing_period, 'options' => $period_options, ) ); ?>
'subscrpt_trial_timing_option', 'id' => 'subscrpt-trial-period-select', 'value' => $trial_period, 'options' => $trial_period_options, ) ); ?>

>

get_name() ) : esc_html__( 'Your product', 'subscription' ); ?>

get_price() ) : '0.00'; ?>$ /

get_price(); $p3_period_raw = isset( $session_data['billing_period'] ) ? $session_data['billing_period'] : 'months'; $p3_billing_per = isset( $session_data['billing_per'] ) ? (int) $session_data['billing_per'] : 1; $p3_period_label = $p3_billing_per > 1 ? $p3_billing_per . ' ' . strtolower( $p3_period_raw ) : strtolower( subscrpt_get_typos( 1, $p3_period_raw ) ); $p3_words = array_filter( explode( ' ', $product->get_name() ) ); $p3_initials = implode( '', array_map( function ( $w ) { return strtoupper( mb_substr( $w, 0, 1 ) ); }, array_slice( $p3_words, 0, 2 ) ) ); ?>

get_name() ); ?>

get_id() ) ); ?> ·

/

.