| @@ 127-135 (lines=9) @@ | ||
| 124 | $meta['free_trial'] = $sub_num_trial_days > 0 ? 1 : 0; |
|
| 125 | $meta['trial_period'] = $package->sub_num_trial_units; |
|
| 126 | $meta['trial_interval'] = $sub_num_trial_days; |
|
| 127 | } else { |
|
| 128 | $meta['is_recurring'] = 0; |
|
| 129 | $meta['recurring_period'] = ''; |
|
| 130 | $meta['recurring_interval'] = ''; |
|
| 131 | $meta['recurring_limit'] = ''; |
|
| 132 | $meta['free_trial'] = 0; |
|
| 133 | $meta['trial_period'] = ''; |
|
| 134 | $meta['trial_interval'] = ''; |
|
| 135 | } |
|
| 136 | ||
| 137 | $data = array( |
|
| 138 | 'post_title' => $package->title, |
|
| @@ 713-721 (lines=9) @@ | ||
| 710 | $meta['free_trial'] = $data['free_trial']; |
|
| 711 | $meta['trial_period'] = $data['trial_period']; |
|
| 712 | $meta['trial_interval'] = absint( $data['trial_interval'] ); |
|
| 713 | } else { |
|
| 714 | $meta['is_recurring'] = 0; |
|
| 715 | $meta['recurring_period'] = ''; |
|
| 716 | $meta['recurring_interval'] = ''; |
|
| 717 | $meta['recurring_limit'] = ''; |
|
| 718 | $meta['free_trial'] = 0; |
|
| 719 | $meta['trial_period'] = ''; |
|
| 720 | $meta['trial_interval'] = ''; |
|
| 721 | } |
|
| 722 | ||
| 723 | $post_data = array( |
|
| 724 | 'post_title' => $data['title'], |
|