Home › Forums › Quform WordPress › Send notification only from hook
- This topic has 3 replies, 2 voices, and was last updated 2 years, 9 months ago by Ally.
- AuthorPosts
- February 2, 2022 at 5:05 pm #33961blueboarParticipant
Hi,
I want to use quform_notification_mailer_config to send an email notification without though the notification being enabled, because I want to send it only on certain times, when another variable on php is set to true.
Is this possible? If so how?
Currently I have a variable let’s call it $isEmailable
add_filter('quform_notification_mailer_config_1_2', function (array $config, Quform_Notification $notification, Quform_Form $form) { if ($winner_type == "coffee") { $config['subject'][] = 'Yes you have been emailed by me'; $config['message'][] = str_replace('{{replacable_)text}}', "ReplacedText", $config['message']); } return $config; }
- This topic was modified 2 years, 9 months ago by blueboar.
February 3, 2022 at 9:18 am #33963AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 13, 2022 at 2:13 pm #33991blueboarParticipantHi Ally,
Thank you for the tip. I have another question that is regarding license. We bought a license but we also have a staging site, is it possible somehow to have both sites licensed with one license, or do we have to buy 2 licenses?
Kind Regards,
RomanosFebruary 14, 2022 at 9:58 am #33993AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.