| @@ -160,14 +160,16 @@ | ||
| 160 | 160 | if ( empty( $types ) ) { |
| 161 | 161 | return ''; |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | - return 'Better Payment Pro is active on this site, so these widgets are fully available' | |
| 165 | - . ' and fully supported — treat them exactly like the free ones: ' | |
| 166 | - . implode( ', ', $types ) . '.' | |
| 167 | - . "\nUse one when it genuinely does a job no free widget does, not to fill space." | |
| 168 | - . ' Their settings and content rules are listed with every other element above,' | |
| 169 | - . ' and they must be followed just as strictly.'; | |
| 164 | + // Pro supplies this section itself (the free-install copy above stays in Lite — | |
| 165 | + // it has to work without Pro). | |
| 166 | + /** | |
| 167 | + * Filter the "Pro widgets" system-prompt section on a Pro install. Receives | |
| 168 | + * the section text (''), the mode ('generate' or 'edit') and the Pro element | |
| 169 | + * types this install is offered. | |
| 170 | + */ | |
| 171 | + return (string) apply_filters( 'better_payment/ai/pro_widgets_prompt', '', $mode, $types ); | |
| 170 | 172 | } |
| 171 | 173 | |
| 172 | 174 | /** |
| 173 | 175 | * Free-install variant: name the locked Pro widgets and the one thing to do |