Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xlplugins/12409e479e06a67ecbf4ca2ed847b222 to your computer and use it in GitHub Desktop.
Save xlplugins/12409e479e06a67ecbf4ca2ed847b222 to your computer and use it in GitHub Desktop.
change stripe express setting gateway description
add_filter('woocommerce_get_settings_checkout',function ($settings, $current_section){
if(isset($settings['section_title'])){
$settings['section_title']= [
'name' => __( 'Express Checkout', 'funnelkit-stripe-woo-payment-gateway' ),
'type' => 'title',
/* translators: HTML for the express checkout section heading */
'desc' => sprintf( __( 'Accept payment using Apple Pay, Google Pay and Browser Payment using Express Buttons.
The visibility of these payment buttons is browser dependent. Click on "Test Visibility" button to see if your browser supports these button.
Learn more %1$1sabout the requirements%2$2s to show Apple Pay, Google Pay and Browser Payment method. Test', 'funnelkit-stripe-woo-payment-gateway' ), '<a href="https://stripe.com/docs/stripe-js/elements/payment-request-button#html-js-testing" target="_blank">', '</a>' ),
'id' => 'fkwcs_express_checkout',
];
}
return $settings;
},11,2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment