frankytee
Forum Replies Created
-
visit https://wprepublic.com/security/how-to-trace-and-clean-the-monit-php-hack/ for a useful method.
login to your wordpress mysql database, go to wp_options and delete:
ad_code
hide_admin
hide_logged_in
display_ad
search_engines
auto_update
ip_admin
cookies_admin
logged_admin
log_installafter deleting these options from the wp_options table, login to your ftp (or sftp) and delete admins_ip.txt from the wp-content/plugins folder
good luck
- This reply was modified 3 years, 3 months ago by frankytee.
We’ve been mailing about that.
A reminder to the customer about the booking would be awesome. Adjustable timing for this notification to the customer would make it even better.
Same idea for a customercare/aftersales mail.
Like a “thank you for your visit” or “thanks, write a review” kinda function.I’d be interested in this function as well ??
Forum: Plugins
In reply to: [Contact Form 7 Datepicker] Display day of week (Mon, Tue, etc.) in emailSame wish here. I want days to be seen in emails!!
since datepicker plugin is installed shortcode [_format_yourdate “{format}”] is not working anymore.Please, fix this please!
Add this snippet to functions.php
First name, last name and mail of customer gets added to new order email. I have no knowledge of coding, soa no idea how to adjust this code to get other results like putting in username./** * add customer name and email to new order mail */ function custom_use_customer_from_address ( $from_email, $obj ) { if ( is_a( $obj, 'WC_Email_New_Order' ) ) { $address_details = $obj->object->get_address( 'billing' ); if ( isset( $address_details['email'] ) && '' != $address_details['email'] ) { $from_email = $address_details['email']; } } return $from_email; } add_filter( 'woocommerce_email_from_address', 'custom_use_customer_from_address', null, 2 ); function custom_use_customer_from_name ( $from_name, $obj ) { if ( is_a( $obj, 'WC_Email_New_Order' ) ) { $address_details = $obj->object->get_address( 'billing' ); if ( isset( $address_details['first_name'] ) && '' != $address_details['first_name'] ) { $from_name = $address_details['first_name']; } if ( isset( $address_details['last_name'] ) && '' != $address_details['last_name'] ) { $from_name .= ' ' . $address_details['last_name']; } } return $from_name; } add_filter( 'woocommerce_email_from_name', 'custom_use_customer_from_name', null, 2 );
I’ve found this snippet to add to functions.php and works great for me!
Name and email of customer gets added to new order emails/** * add customer name and email to new order mail */ function custom_use_customer_from_address ( $from_email, $obj ) { if ( is_a( $obj, 'WC_Email_New_Order' ) ) { $address_details = $obj->object->get_address( 'billing' ); if ( isset( $address_details['email'] ) && '' != $address_details['email'] ) { $from_email = $address_details['email']; } } return $from_email; } add_filter( 'woocommerce_email_from_address', 'custom_use_customer_from_address', null, 2 ); function custom_use_customer_from_name ( $from_name, $obj ) { if ( is_a( $obj, 'WC_Email_New_Order' ) ) { $address_details = $obj->object->get_address( 'billing' ); if ( isset( $address_details['first_name'] ) && '' != $address_details['first_name'] ) { $from_name = $address_details['first_name']; } if ( isset( $address_details['last_name'] ) && '' != $address_details['last_name'] ) { $from_name .= ' ' . $address_details['last_name']; } } return $from_name; } add_filter( 'woocommerce_email_from_name', 'custom_use_customer_from_name', null, 2 );