Skip to content

Instantly share code, notes, and snippets.

@bradleysa
Created April 22, 2022 08:02
Show Gist options
  • Save bradleysa/9ee5334451760604bd13623489b0ca44 to your computer and use it in GitHub Desktop.
Save bradleysa/9ee5334451760604bd13623489b0ca44 to your computer and use it in GitHub Desktop.
Print Invoice: Remove Payment Method
function example_removed_payment_method( $fields ) {
unset( $fields['payment_method'] );
return $fields;
}
add_filter( 'wcdn_order_info_fields', 'example_removed_payment_method' );
/** https://copperpanjams.com/wp-admin/index.php?page=wcdn_faq_page **/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment