AI Verified

Name

Add user payment method to admin email

Language

PHP

Rating

Voted: 0 by 0 user(s)

Codevault

jbeer

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: Not Specified

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

14/11/2022

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Add user payment method to admin email

 
                    
1if (!function_exists( 'evolution_add_payment_method_to_admin_new_order' ) ) :
2/**
3 * Add user payment method to admin email
4 *
5 * @hooked woocommerce_email_after_order_table()
6 */
7function evolution_add_payment_method_to_admin_new_order( $order, $is_admin_email ) {
8 
9 if ( $is_admin_email ) {
10 
11 echo '<p><strong>Verwendete Zahlungsart:</strong> ' . $order->payment_method_title . '</p>';
12 
13 }
14}
15add_action( 'woocommerce_email_after_order_table', 'evolution_add_payment_method_to_admin_new_order', 15, 2 );
16endif;

0

Related Snippets

Please see some snippets below related to this snippet..

WooCommerce

AI Verified

0

WooCommerce Custom Radio Button Field For Product Editor

Added: 1 year ago

Last Updated: 1 year ago

This guide shows you how to create custom radio buttons in the product editor of WooCommerce. This is perfect if you need to be able to select a pre-defined series of options in the backend and displa...

WooCommerce

AI Verified

0

Order note per product.

Added: 1 year ago

Last Updated: 1 year ago

this code add order note on a single product page and include information in order meta.

WooCommerce

AI Verified

1

WooCommerce Remove Prices From Product Automatically After They Are Ordered

Added: 1 year ago

Last Updated: 2 months ago

This snippet was requested by one of the members from the WooCommerce Facebook Snippets Community.This snippet will automatically remove product prices when the product is ordered making it non-purcha...

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WooCommerce

AI Verified

3

Confirm Password Field in Woocommerce

Added: 2 years ago

Last Updated: 2 months ago

WooCommerce

AI Verified

3

Redirect customers to own thank-you page after order

Added: 2 years ago

Last Updated: 2 months ago

You may want to redirect your customers to a custom thank you page after they place an order. You can do that with the following WooCommerce snippet

WooCommerce

AI Verified

2

Bypass logout confirmation.

Added: 2 years ago

Last Updated: 3 months ago