Forked from travislopes/fg_entryautomation_export_email_subject.php
Created
August 21, 2017 15:45
-
-
Save ForGravity/10308dc0e9b2e590b9651ec798879537 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'fg_entryautomation_export_email_subject', 'subject_date_range', 10, 4 ); | |
function subject_date_range( $subject, $settings, $form, $file_name ) { | |
// Get search criteria. | |
$search_criteria = fg_entryautomation()->get_search_criteria( $settings, $form ); | |
// Add date range to subject. | |
return sprintf( 'Form Summary for %s to %s', $search_criteria['start_date'], $search_criteria['end_date'] ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment