Version Description
- New hooks added thanks to Joel Frankwick in order to make possible to change default wp_mail() headers
Download this release
Release Info
Developer | carazo |
Plugin | Import users from CSV with meta |
Version | 1.11.3.10 |
Comparing to | |
See all releases |
Code changes from version 1.11.3.9 to 1.11.3.10
- import-users-from-csv-with-meta.php +1 -1
- importer.php +4 -2
- readme.txt +4 -1
import-users-from-csv-with-meta.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Import users from CSV with meta
|
4 |
Plugin URI: https://www.codection.com
|
5 |
Description: This plugins allows to import users using CSV files to WP database automatically
|
6 |
-
Version: 1.11.3.
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
3 |
Plugin Name: Import users from CSV with meta
|
4 |
Plugin URI: https://www.codection.com
|
5 |
Description: This plugins allows to import users using CSV files to WP database automatically
|
6 |
+
Version: 1.11.3.10
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
importer.php
CHANGED
@@ -568,6 +568,8 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
|
|
568 |
}
|
569 |
|
570 |
$body_mail = wpautop( $body_mail );
|
|
|
|
|
571 |
|
572 |
add_filter( 'wp_mail_content_type', 'cod_set_html_content_type' );
|
573 |
|
@@ -576,14 +578,14 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
|
|
576 |
add_filter( 'wp_mail_from', 'acui_mail_from' );
|
577 |
add_filter( 'wp_mail_from_name', 'acui_mail_from_name' );
|
578 |
|
579 |
-
wp_mail( $email, $subject, $body_mail );
|
580 |
|
581 |
remove_filter( 'wp_mail_from', 'acui_mail_from' );
|
582 |
remove_filter( 'wp_mail_from_name', 'acui_mail_from_name' );
|
583 |
remove_action( 'phpmailer_init', 'acui_mailer_init' );
|
584 |
}
|
585 |
else
|
586 |
-
wp_mail( $email, $subject, $body_mail );
|
587 |
|
588 |
remove_filter( 'wp_mail_content_type', 'cod_set_html_content_type' );
|
589 |
endif;
|
568 |
}
|
569 |
|
570 |
$body_mail = wpautop( $body_mail );
|
571 |
+
$headers_mail = array();
|
572 |
+
$headers_mail = apply_filters( 'acui_import_email_headers', $headers_mail, $headers, $data );
|
573 |
|
574 |
add_filter( 'wp_mail_content_type', 'cod_set_html_content_type' );
|
575 |
|
578 |
add_filter( 'wp_mail_from', 'acui_mail_from' );
|
579 |
add_filter( 'wp_mail_from_name', 'acui_mail_from_name' );
|
580 |
|
581 |
+
wp_mail( $email, $subject, $body_mail, $headers_mail );
|
582 |
|
583 |
remove_filter( 'wp_mail_from', 'acui_mail_from' );
|
584 |
remove_filter( 'wp_mail_from_name', 'acui_mail_from_name' );
|
585 |
remove_action( 'phpmailer_init', 'acui_mailer_init' );
|
586 |
}
|
587 |
else
|
588 |
+
wp_mail( $email, $subject, $body_mail, $headers_mail );
|
589 |
|
590 |
remove_filter( 'wp_mail_content_type', 'cod_set_html_content_type' );
|
591 |
endif;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://paypal.me/codection
|
|
4 |
Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.9.8
|
7 |
-
Stable tag: 1.11.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -71,6 +71,9 @@ Plugin will automatically detect:
|
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
74 |
= 1.11.3.9 =
|
75 |
* New hooks added thanks to @malcolm-oph (https://wordpress.org/support/topic/using-filters-to-add-data-columns/)
|
76 |
|
4 |
Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.9.8
|
7 |
+
Stable tag: 1.11.3.10
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
+
= 1.11.3.10 =
|
75 |
+
* New hooks added thanks to Joel Frankwick in order to make possible to change default wp_mail() headers
|
76 |
+
|
77 |
= 1.11.3.9 =
|
78 |
* New hooks added thanks to @malcolm-oph (https://wordpress.org/support/topic/using-filters-to-add-data-columns/)
|
79 |
|