msngmedia
Forum Replies Created
-
Hi guys, thanks for the comments.
Forum: Fixing WordPress
In reply to: Is that safe to use the previous version of WordPressThanks Pioneer.
Forum: Fixing WordPress
In reply to: Is that safe to use the previous version of WordPressThanks for the reply, Pioneer. Which version is consider very old version? And do you mind to explain why WP team still release a security fix for the old version seen is not safe to use? I try to google but no luck. Actually I want to find this answer long time ago. Appreciate your explanation ??
Forum: Fixing WordPress
In reply to: Is that safe to use the previous version of WordPressThanks Pioneer, meaning to say is safe to use ??
Thanks for the reply. There is no compatible issue on Wordfence at WordPress 3.8.22 right now. But my concern is do my site safe if using 3.8.22 or 3.8.2x in the future? Thanks.
Hi dwinden, thanks for the info and is working find now. Have a nice day to you ??
Try this and it working find with me on Woocommerce 2.1.7
https://stackoverflow.com/questions/14343928/woocommerce-new-customer-admin-notification-email
Actually the only file you need to override is your_template_directory/woocommerce/emails/customer-new-account.php.
At the end of this file add this line of code:
=========================================================
<?php do_action( ‘new_customer_registered’, $user_login ); ?>
=========================================================In functions.php add this:
================================================
function new_customer_registered_send_email_admin($user_login) {
ob_start();
do_action(‘woocommerce_email_header’, ‘New customer registered’);
$email_header = ob_get_clean();
ob_start();
do_action(‘woocommerce_email_footer’);
$email_footer = ob_get_clean();woocommerce_mail(
get_bloginfo(‘admin_email’),
get_bloginfo(‘name’).’ – New customer registered’,
$email_header.'<p>The user ‘.esc_html( $user_login ).’ is registered to the website</p>’.$email_footer
);
}
add_action(‘new_customer_registered’, ‘new_customer_registered_send_email_admin’);
==============================================