PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.8.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.8.2
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / models / FrmEmailYearly.php

FrmEmailYearly.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.8.2, at classes/models/FrmEmailYearly.php

37 lines 747 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Yearly summary email class
4 *
5 * @since 6.7
6 * @package Formidable
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 die( 'You are not allowed to call this page directly.' );
11 }
12
13 class FrmEmailYearly extends FrmEmailStats {
14
15 protected $date_range = 365;
16
17 protected function get_subject() {
18 return __( 'How your forms performed this year', 'formidable' );
19 }
20
21 protected function get_top_forms_label() {
22 return __( 'Top forms this year', 'formidable' );
23 }
24
25 /**
26 * @since 6.8
27 */
28 protected function get_content_args() {
29 // Do not send yearly email if there is no entries this year.
30 if ( ! FrmEmailSummaryHelper::get_entries_count( $this->from_date, $this->to_date ) ) {
31 return false;
32 }
33
34 return parent::get_content_args();
35 }
36 }
37