Hello,
When using the Optimized Checkout Suite (OCS) on the classic shortcode checkout, a static description is displayed under the payment option (e.g., “Pay with your credit card via Stripe”). Since OCS bundles multiple payment methods into one gateway, this specific description often doesn’t make sense anymore and needs to be customized to better reflect the available options.
Currently, there is already a filter available to modify the title of the OCS payment option:
`wc_stripe_optimized_checkout_title`
I am requesting a similar filter for the description text: `wc_stripe_optimized_checkout_description`
Examples of how this filter could be used:
1. Customize the text to cover all regional payment methods:
add_filter( ‘wc_stripe_optimized_checkout_description’, function() {
return ‘Pay conveniently with credit card or other popular payment methods in your region.’;
} );
2. Remove or hide the description text completely if not needed:
add_filter( ‘wc_stripe_optimized_checkout_description’, ‘__return_empty_string’ );
Note on implementation:
It is completely sufficient if the description continues to be rendered as simple static text in the checkout. There is no need for complex dynamic behavior. Simply being able to hook in and override the static text string via a filter would solve the issue completely.
While changing the text via translation tools (like Loco Translate) is possible, a dedicated developer filter would be much cleaner and more efficient, matching the existing title filter functionality.
Thank you for considering this request!
Open
Last updated: July 21, 2026
0 comments
Log in to comment on this feature request.