how to add custom reviews button in woocommerce order complete generated mail

You can overwrite woocommerce templates placing them in your theme. To overwrite e.g. email-order-details.php template, place it in yourtheme/woocommerce/email/email-order-details.php path. You can also add action to add your custom review button. function wpse_287685_woocommerce_email_after_order_table($order, $sent_to_admin, $plain_text, $email) { ?> <a href=”#”>Add review</a> <?php } add_action( ‘woocommerce_email_after_order_table’, ‘wpse_287685_woocommerce_email_after_order_table’, 10, 4 );

Send default WooCommerce email when switching from custom order status

Looks like I was overcomplicating things. This is the solution: add_filter( ‘woocommerce_email_classes’, ‘custom_woocommerce_email_classes’, 10, 1 ); function custom_woocommerce_email_classes( $email_classes ) { $email_classes[ ‘WC_Email_Customer_On_Review_Request’ ] = include_once ‘includes/classes/class-wc-email-customer-on-review-request.php’; // Register custom trigger to send on-hold email when status is switched from on-review to on-hold. add_action( ‘woocommerce_order_status_on-review_to_on-hold_notification’, [ $email_classes[ ‘WC_Email_Customer_On_Hold_Order’ ], ‘trigger’ ], 10, 2 ); return … Read more

Custom Welcome Email | WordPress

Amazing. I rewrote half of the default function to accomplish what I wanted. I am pretty sure that there is a solution out there: add_filter( ‘wp_new_user_notification_email’ , ‘edit_user_notification_email’, 10, 3 ); function edit_user_notification_email( $wp_new_user_notification_email, $user, $user_email ) { global $wpdb, $wp_hasher; $key = wp_generate_password( 20, false ); /** This action is documented in wp-login.php */ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)