get_results($wpdb->prepare( "SELECT s.*, p.post_title as product_name FROM {$wpdb->prefix}yoone_subscriptions s LEFT JOIN {$wpdb->posts} p ON s.product_id = p.ID WHERE s.user_id = %d ORDER BY s.created_at DESC", $user_id )); ?>
|
#id; ?>
product_name ?: __('未知产品', 'yoone-subscriptions')); ?> |
status); ?> | next_payment_date && $subscription->status === 'active'): ?> – | subscription_price); ?> / billing_period, $subscription->billing_interval); ?> | status === 'active'): ?> status === 'paused'): ?> status, array('active', 'paused'))): ?> |