PluginProbe
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More / 2.4.1
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More v2.4.1
2.4.1 2.4.0 2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.2 2.2.1 2.2.0 2.1.2 2.1.1 trunk 0.0.1 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6 0.0.7 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 All 68 releases
← All changes | includes/AI/Prompt/PromptBuilder.php +8 -6 2.3.2 → 2.4.1 View file →
@@ -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