← All changes
|
admin/modules/layout/class-wpfnl-template-layout.php
+9
-4
3.10.8
→
3.13.3
View file →
| @@ -133,9 +133,11 @@ | ||
| 133 | 133 | 'output' => 'input_1' |
| 134 | 134 | ]; |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | - if (isset($step_info['isCondition']) && $step_info['isCondition']) { | |
| 137 | + // Conditional step settings are a Pro feature — skip for free installs. | |
| 138 | + $is_pro_active = apply_filters( 'wpfunnels/is_pro_license_activated', false ); | |
| 139 | + if ( $is_pro_active && isset($step_info['isCondition']) && $step_info['isCondition']) { | |
| 138 | 140 | $this->funnel->update_meta($step_id, '_wpfnl_maybe_enable_condition', 'yes'); |
| 139 | 141 | $this->handle_conditions($step_info, $index); |
| 140 | 142 | } |
| 141 | 143 | |
| @@ -162,11 +164,14 @@ | ||
| 162 | 164 | ] |
| 163 | 165 | ]; |
| 164 | 166 | |
| 165 | 167 | if (isset($step_info['isCondition']) && $step_info['isCondition']) { |
| 166 | - $outputs['output_2'] = [ | |
| 167 | - 'connections' => [] | |
| 168 | - ]; | |
| 168 | + $is_pro_active = apply_filters( 'wpfunnels/is_pro_license_activated', false ); | |
| 169 | + if ( $is_pro_active ) { | |
| 170 | + $outputs['output_2'] = [ | |
| 171 | + 'connections' => [] | |
| 172 | + ]; | |
| 173 | + } | |
| 169 | 174 | } |
| 170 | 175 | $edit_post_link = base64_encode(get_edit_post_link($step_id)); |
| 171 | 176 | $view_link = base64_encode(get_the_permalink($step_id)); |
| 172 | 177 | return [ |