| @@ 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, |
|
| @@ 725-733 (lines=9) @@ | ||
| 722 | $meta['free_trial'] = $data['free_trial']; |
|
| 723 | $meta['trial_period'] = $data['trial_period']; |
|
| 724 | $meta['trial_interval'] = absint( $data['trial_interval'] ); |
|
| 725 | } else { |
|
| 726 | $meta['is_recurring'] = 0; |
|
| 727 | $meta['recurring_period'] = ''; |
|
| 728 | $meta['recurring_interval'] = ''; |
|
| 729 | $meta['recurring_limit'] = ''; |
|
| 730 | $meta['free_trial'] = 0; |
|
| 731 | $meta['trial_period'] = ''; |
|
| 732 | $meta['trial_interval'] = ''; |
|
| 733 | } |
|
| 734 | ||
| 735 | $post_data = array( |
|
| 736 | 'post_title' => $data['title'], |
|