Notify WpForm
-
Hello. I cannot activate notifications for the plugin WpForm. It is installed, license Elite. But it doesn’t connect.
-
Hi! Thank you for reporting this.
Unfortunately I don’t have access to a WPForms Elite license to reproduce and debug the issue directly.
I found the issue — the plugin currently checks only for the WPForms Lite version. The Pro/Elite version uses a different plugin slug and was not being detected.
in /wp-content/plugins/notification-for-telegram/include/nftb_optionpage.php
search for this code :
if (is_plugin_active(‘wpforms-lite/wpforms.php’))
replaceif (is_plugin_active('wpforms-lite/wpforms.php'))With :
if ( is_plugin_active('wpforms-lite/wpforms.php') ||
is_plugin_active('wpforms/wpforms.php') )
Let me know if its workingIf its woriking This will be fixed in the next release. Thank you for reporting it, your feedback directly helped improve the plugin! 🙏
Hi! I’ve applied the change, and now the WPForms checkbox/switch is showing up in the plugin settings.
However, notifications still don’t arrive when the form is submitted. Is there anything else that needs to be enabled inside the WPForms form itself (e.g., specific notification settings, integrations, or a required setting per form) for Telegram notifications to trigger?
Sorry i Don’t have Pro/Elite version to test !!
anyway try to replace this code on in /wp-content/plugins/notification-for-telegram/index.php
line around 350//WP FORM
add_action("wpforms_process_complete", 'nftb_function_save_custom_form_data');
function nftb_function_save_custom_form_data($params) {
$TelegramNotify2 = new nftb_TelegramNotify();
if ($TelegramNotify2->getValuefromconfig('notify_wpform') && is_plugin_active('wpforms-lite/wpforms.php')) {
$bloginfo = get_bloginfo( 'name' );
$defmessage = "" ;
foreach($params as $idx=>$item) {
$field_name = $item['name'];
$fiel_value = $item['value'];
$defmessage = $defmessage ."\r\n".$field_name." : ".$fiel_value;
// Do whatever you need
}
nftb_send_teleg_message( "NEW Wpform".$bloginfo."\r\n ".$defmessage, '','');
return true;
} //
}with this code and test
add_action("wpforms_process_complete", 'nftb_function_save_custom_form_data', 10, 4);
function nftb_function_save_custom_form_data($fields, $entry, $form_data, $entry_id) {
$TelegramNotify2 = new nftb_TelegramNotify();
// Check for Lite OR Pro/Elite
$is_wpforms_active = is_plugin_active('wpforms-lite/wpforms.php')
|| is_plugin_active('wpforms/wpforms.php');
if ($TelegramNotify2->getValuefromconfig('notify_wpform') && $is_wpforms_active) {
$bloginfo = get_bloginfo('name');
$defmessage = "";
foreach ($fields as $field) {
$field_name = isset($field['name']) ? $field['name'] : '';
$field_value = isset($field['value']) ? $field['value'] : '';
$defmessage .= "\r\n" . $field_name . " : " . $field_value;
}
nftb_send_teleg_message("NEW Wpform " . $bloginfo . "\r\n " . $defmessage, '', '');
return true;
}
}waiting for you news !!
thxI tried this fix and works on lite version let me know about Pro/Elite
add_action("wpforms_process_complete", 'nftb_function_save_custom_form_data', 10, 4);
function nftb_function_save_custom_form_data($fields, $entry, $form_data, $entry_id) {
$TelegramNotify2 = new nftb_TelegramNotify();
// Check for Lite OR Pro/Elite
if ($TelegramNotify2->getValuefromconfig('notify_wpform') && defined('WPFORMS_VERSION')) {
$bloginfo = get_bloginfo('name');
$defmessage = "";
foreach ($fields as $field) {
$field_name = isset($field['name']) ? $field['name'] : '';
$field_value = isset($field['value']) ? $field['value'] : '';
$defmessage .= "\r\n" . $field_name . " : " . $field_value;
}
nftb_send_teleg_message("NEW Wpform " . $bloginfo . "\r\n " . $defmessage, '', '');
return true;
}
}new method to check if active defined(‘WPFORMS_VERSION’))
try this last fix !! in /wp-content/plugins/notification-for-telegram/index.php
line around 350
You must be logged in to reply to this topic.