Skip to content

Instantly share code, notes, and snippets.

@rcstr

rcstr/dip.php Secret

Last active March 14, 2021 16:14
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 rcstr/0c77558b2a08f20a904bf9b47786dab6 to your computer and use it in GitHub Desktop.
Save rcstr/0c77558b2a08f20a904bf9b47786dab6 to your computer and use it in GitHub Desktop.
<?php
/**
* @param string $html
* @param WC_Payment_Gateway $payment_method
*/
function rcstr_payment_gateway_form_saved_payment_methods_html( string $html, WC_Payment_Gateway $payment_method ) {
return $html;
}
add_filter( 'wc_payment_gateway_form_saved_payment_methods_html', 'rcstr_payment_gateway_form_saved_payment_methods_html', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment