time' => $lastHour, 'last_item_time' => $currentTime, ]; $emailBody = wpFluentForm('view')->make('email.failedIntegration.body', $data); $emailBody = apply_filters('fluentform/failed_integration_email_body', $emailBody, $data); $originalEmailBody = $emailBody; ob_start(); // apply CSS styles inline for picky email clients try { $emogrifier = new Emogrifier($emailBody); $emailBody = $emogrifier->emogrify(); } catch (\Exception $e) { } $maybeError = ob_get_clean(); if ($maybeError) { $emailBody = $originalEmailBody; } $headers = ['Content-Type: text/html; charset=utf-8']; $emailSubject = esc_html__('Failed Integration Notification', 'fluentform'); $emailSubject = apply_filters('fluentform/failed_integration_email_subject', $emailSubject); update_option('_ff_last_sent_failed_integration_mail', current_time('timestamp'), 'no'); return wp_mail($recipients, $emailSubject, $emailBody, $headers); } public function timeMatched() { $prevValue = get_option('_ff_last_sent_failed_integration_mail'); if (!$prevValue) { return true; } $time = apply_filters('fluentform/failed_integration_notification_time_gap', 3600);// set time by default 1 hour gap return (current_time('timestamp') - $prevValue) > $time; } private function getFeedName($feedData) { return !empty(ArrayHelper::get($feedData, 'settings.name')) ? ArrayHelper::get($feedData, 'settings.name') : ArrayHelper::get($feedData, 'settings.textTitle'); } }
Fatal error: Uncaught Error: Class "FluentFormPro\classes\FailedIntegrationNotification" not found in /htdocs/wp-content/plugins/fluentformpro/fluentformpro.php:276 Stack trace: #0 /htdocs/wp-content/plugins/fluentformpro/fluentformpro.php(128): FluentFormPro->adminHooks(Object(FluentForm\Framework\Foundation\Application)) #1 /htdocs/wp-content/plugins/fluentformpro/fluentformpro.php(120): FluentFormPro->registerHooks(Object(FluentForm\Framework\Foundation\Application)) #2 /htdocs/wp-content/plugins/fluentformpro/fluentformpro.php(651): FluentFormPro->boot() #3 /htdocs/wp-includes/class-wp-hook.php(324): {closure}('') #4 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /htdocs/wp-settings.php(695): do_action('init') #7 /htdocs/wp-config.php(89): require_once('/htdocs/wp-sett...') #8 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #9 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #10 /htdocs/index.php(17): require('/htdocs/wp-blog...') #11 {main} thrown in /htdocs/wp-content/plugins/fluentformpro/fluentformpro.php on line 276