| @@ -41,8 +41,16 @@ | ||
| 41 | 41 | ->init(); |
| 42 | 42 | |
| 43 | 43 | add_filter( |
| 44 | 44 | 'ens_bt_available_actions', function ( $actions ) { |
| 45 | + // Google Meet link generation is gated behind Pro (the pro plugin is what | |
| 46 | + // adds the enable_google_meet field to the service model), but the tag | |
| 47 | + // itself is registered here in free. Without this, a free user picks the | |
| 48 | + // tag, gets an empty value in the email and reads it as a broken feature. | |
| 49 | + $meet_label = booktics_is_pro_active() | |
| 50 | + ? __( 'Google Meet URL', 'booktics' ) | |
| 51 | + : __( 'Google Meet URL (Pro)', 'booktics' ); | |
| 52 | + | |
| 45 | 53 | $actions = array( |
| 46 | 54 | array( |
| 47 | 55 | 'trigger_label' => __( 'Order Created', 'booktics' ), |
| 48 | 56 | 'trigger_value' => 'order_created', |
| @@ -107,9 +115,9 @@ | ||
| 107 | 115 | 'value' => 'customer_name', |
| 108 | 116 | 'type' => 'string', |
| 109 | 117 | ), |
| 110 | 118 | array( |
| 111 | - 'label' => __( 'Google meet Url', 'booktics' ), | |
| 119 | + 'label' => $meet_label, | |
| 112 | 120 | 'value' => 'google_meet_url', |
| 113 | 121 | 'type' => 'string', |
| 114 | 122 | ), |
| 115 | 123 | array( |
| @@ -185,9 +193,9 @@ | ||
| 185 | 193 | 'value' => 'user_email', |
| 186 | 194 | 'type' => 'string', |
| 187 | 195 | ), |
| 188 | 196 | array( |
| 189 | - 'label' => __( 'Google Meet URL', 'booktics' ), | |
| 197 | + 'label' => $meet_label, | |
| 190 | 198 | 'value' => 'google_meet_url', |
| 191 | 199 | 'type' => 'string', |
| 192 | 200 | ), |
| 193 | 201 | array( |