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: Plugin Name | |
* Description: Creating plugin settings with React JS. | |
* Version: 1.0.0 | |
* Author: Sanjeev Aryal | |
* Author URI: https://www.sanjeebaryal.com.np | |
* Text Domain: simplicity | |
* Domain Path: /languages/ | |
* |
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
add_filter( 'wpforms_emails_send_email_data', 'wpf_prepare_files', 10, 2 ); | |
/** | |
* Prepare file attachment. | |
* | |
* @param Array $data Email Data. | |
* @param Obj $email_obj Email Object. | |
* | |
* @return Obj The Email Data with attachment. | |
*/ |
OlderNewer