Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Add Payment Type to WooCommerce Admin Email

add_action( 'woocommerce_email_after_order_table', 'add_payment_method_to_admin_new_order', 15, 2 );
 
function add_payment_method_to_admin_new_order( $order, $is_admin_email ) {
  if ( $is_admin_email ) {
    echo '<p><strong>Payment Method:</strong> ' . $order->payment_method_title . '</p>';
  }
}
Comment

PREVIOUS NEXT
Code Example
Php :: search posts by post title in worpress 
Php :: post_export signals 
Php :: tina4 generate crud 
Php :: Argument 1 passed to DoctrineInflectorInflector::singularize() must be of the type string, null given, 
Php :: Wordpress Scheduled Post to be viewable on front end 
Php :: get product by author id 
Php :: how to print * symbol in c++ 
Php :: php on page query 
Php :: check backend post type 
Php :: Multiple trait declaration in PHP 
Php :: does heat prevent radiation 
Php :: how to superscript th in php date 
Php :: php calculate variance 
Php :: Drupal 9 check if UUD is valid 
Php :: Yii2 Dynamic Relational, Lazy loading 
Php :: php make text id attribute safe 
Php :: laravel sql illegal collation 
Php :: How to get ID and other string in url 
Php :: how to type casting and overriding in php 
Php :: global phpcs 
Php :: php function return type self 
Php :: how to check null and empty array in laravel 8 
Php :: joomla include jfactory 
Php :: findmany laravel 
Php :: Remove images from the the_content() 
Php :: ph address format 
Php :: The provided cwd "C:laravel projectseccomer/../public_html" 
Php :: laravel app service provider why eloquent model error 
Php :: PHP nl2br — Inserts HTML line breaks before all newlines in a string 
Php :: Régler l’enregistrement automatique dans WordPress 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =