Guillermo Figueredo
Forum Replies Created
-
We are very happy with your plugin, and if you can assist us with this issue we would be more than happy to pay for that. Either by buying the pro version or just paying directly for a fix of this issue. For some reason, no matter where I use the function, the expire date is always today+1. We dont know when and why it stopped working as expected.
Yes, we are using that code.
We are going to test is trying to add the function on another action, but there seems to be an incompatibility that was not there before.
The code was working until recently.
*I am happy to share the staging site separately via email
Hi It was a cache issue on our end. All solved!
I would be happy to share more details about the site privately.
Forum: Plugins
In reply to: [Widgets for Google Reviews] Can’t connect google accountHi! I am having the same problem. Popup opens and screen is blank. about:blank
Thank you!
Fatal error: Uncaught Error: Undefined constant “‘haet_mail_use_template’” in /home/customer/www/*****/public_html/wp-content/themes/astra-child/functions.php:12 Stack trace: #0 /home/customer/www/*****/public_html/wp-settings.php(585): include() #1 /home/customer/www/*****/public_html/wp-config.php(103): require_once(‘/home/customer/…’) #2 /home/customer/www/******/public_html/wp-load.php(50): require_once(‘/home/customer/…’) #3 /home/customer/www/******/public_html/wp-admin/admin.php(34): require_once(‘/home/customer/…’) #4 /home/customer/www/******/public_html/wp-admin/theme-editor.php(10): require_once(‘/home/customer/…’) #5 {main} thrown in?/home/customer/www/****/public_html/wp-content/themes/astra-child/functions.php?on line?12
There has been a critical error on this website. Please check your site admin email inbox for instructions.
There seems to be something wrong with the code you sent me. The text is marked in red, so something wrong in the format.
Hi,
Do you have any insights about why I am getting this error with that code I shared? Thank you!
Parse error: syntax error, unexpected identifier “Order””, expecting “)” in?/home/customer/www/******/public_html/wp-content/themes/astra-child/functions.php?on line?17
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Hi,
I added the following code, but it was be an error:
add_filter( ‘haet_mail_use_template’, ‘customize_template_usage’, 10, 2 );
function customize_template_usage( $use_template, $mail ){if( strpos($mail[‘subject’], “New Order”) !== false || strpos($mail[‘subject’], “Cancelled Order”) !== false) || strpos($mail[‘subject’], “Failed Order”) !== false) || strpos($mail[‘subject’], “Your order ”) !== false) || strpos($mail[‘subject’], “This is the invoice”) !== false) || strpos($mail[‘subject’], “A note was added”) !== false) || strpos($mail[‘subject’], “Password Reset Instructions”) !== false) || strpos($mail[‘subject’], “Your account”) !== false) || strpos($mail[‘subject’], “New Subscription Renewal Order”) !== false) || strpos($mail[‘subject’], “Subscription Switched”) !== false) || strpos($mail[‘subject’], “Your renewal order”) !== false) || strpos($mail[‘subject’], “Your subscription”) !== false) || strpos($mail[‘subject’], “Subscription Cancelled”) !== false) || strpos($mail[‘subject’], “Subscription Expired”) !== false) || strpos($mail[‘subject’], “Subscription Suspended”) !== false) || strpos($mail[‘subject’], “Your membership”) !== false) || strpos($mail[‘subject’], “Renew your membership”) !== false) || strpos($mail[‘subject’], “Automatic payment”) !== false) || strpos($mail[‘subject’], “Automatic renewal”) !== false) || strpos($mail[‘subject’], “Payment authorization”) !== false) || strpos($mail[‘subject’], “New User Registration”) !== false) || strpos($mail[‘subject’], “User Updated”) !== false) {
return false;
}
return true;
}Thank you!
What would be the code if I want to add multiple subjects?
Thanks again!
Hi. I don’t manage PHP code. Could you share the full piece of code that would be needed? Beginning to end?
Thanks!
Hi! Could you provide some assistance to my questions? Thanks!