Last active
September 18, 2024 05:43
-
-
Save wpmudev-sls/84bb48b5a073fff8fa250a3331630e9e to your computer and use it in GitHub Desktop.
[Forminator Pro] - Customize scheduled exports mail body
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 | |
/** | |
* Plugin Name: [Forminator Pro] Customization of email body for scheduled submission exports. | |
* Description: Customization of email body for scheduled submission exports | |
* Author: Prashant @ WPMUDEV | |
* Task: SLS-6504 | |
* Author URI: https://premium.wpmudev.org | |
* License: GPLv2 or later | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
add_filter( 'forminator_export_email_content', 'wpmudev_change_export_mail_content', 10, 3 ); | |
function wpmudev_change_export_mail_content( $mail_content, $form_names, $export_results ) { | |
$mail_content = str_replace( 'Forminator', 'Your custom text', $mail_content ); // Please change Your custom text to your text. | |
$mail_content = str_replace( 'View Submissions', '', $mail_content ); | |
$mail_content = str_replace( '<li><a', '<div></a', $mail_content ); | |
$mail_content = str_replace( '</a></li>', '</a></div>', $mail_content ); | |
return $mail_content; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment