Version Description
Download this release
Release Info
Developer | jasongreen |
Plugin | Contact Form Submissions |
Version | 1.3.3 |
Comparing to | |
See all releases |
Code changes from version 1.3.2 to 1.3.3
- Submissions.php +12 -5
- contact-form-submissions.php +1 -1
- readme.txt +4 -1
Submissions.php
CHANGED
@@ -5,6 +5,7 @@ class WPCF7Submissions {
|
|
5 |
add_action('init', array($this, 'post_type') );
|
6 |
|
7 |
add_filter('wpcf7_mail_components', array($this, 'submission'), 999, 3);
|
|
|
8 |
}
|
9 |
|
10 |
function post_type() {
|
@@ -45,13 +46,19 @@ class WPCF7Submissions {
|
|
45 |
register_post_type( 'wpcf7s', $args );
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
function submission($components, $contact_form, $mail){
|
49 |
-
global $wpcf7s_post_id;
|
50 |
|
51 |
-
$
|
52 |
-
|
53 |
-
if(null !== $submitted) {
|
54 |
-
foreach($submitted as $name => $value){
|
55 |
if('_wpcf7' !== substr($name, 0, 6)){
|
56 |
$fields[$name] = $value;
|
57 |
}
|
5 |
add_action('init', array($this, 'post_type') );
|
6 |
|
7 |
add_filter('wpcf7_mail_components', array($this, 'submission'), 999, 3);
|
8 |
+
add_filter('wpcf7_posted_data', array($this, 'posted'), 999, 3);
|
9 |
}
|
10 |
|
11 |
function post_type() {
|
46 |
register_post_type( 'wpcf7s', $args );
|
47 |
}
|
48 |
|
49 |
+
function posted($posted_data){
|
50 |
+
global $wpcf7s_posted_data;
|
51 |
+
|
52 |
+
$wpcf7s_posted_data = $posted_data;
|
53 |
+
|
54 |
+
return $posted_data;
|
55 |
+
}
|
56 |
+
|
57 |
function submission($components, $contact_form, $mail){
|
58 |
+
global $wpcf7s_post_id, $wpcf7s_posted_data;
|
59 |
|
60 |
+
if(!empty($wpcf7s_posted_data)) {
|
61 |
+
foreach($wpcf7s_posted_data as $name => $value){
|
|
|
|
|
62 |
if('_wpcf7' !== substr($name, 0, 6)){
|
63 |
$fields[$name] = $value;
|
64 |
}
|
contact-form-submissions.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Contact Form Submissions
|
4 |
Description: Never miss an enquiry again! Save all Contact Form 7 submissions in your database.
|
5 |
-
Version: 1.3.
|
6 |
Author: Jason Green
|
7 |
License: GPLv3
|
8 |
Domain Path: /languages
|
2 |
/*
|
3 |
Plugin Name: Contact Form Submissions
|
4 |
Description: Never miss an enquiry again! Save all Contact Form 7 submissions in your database.
|
5 |
+
Version: 1.3.3
|
6 |
Author: Jason Green
|
7 |
License: GPLv3
|
8 |
Domain Path: /languages
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: contact form 7, save contact form, submissions, contact form db, cf7, wpcf
|
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNHXWSXSPYATE
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.5.1
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv3
|
9 |
|
10 |
Never miss an enquiry again! Save all Contact Form 7 submissions safely in your database.
|
@@ -37,6 +37,9 @@ None yet
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
40 |
= 1.3.2 =
|
41 |
* Removed filter that broke some RSS feeds
|
42 |
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNHXWSXSPYATE
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.5.1
|
7 |
+
Stable tag: 1.3.3
|
8 |
License: GPLv3
|
9 |
|
10 |
Never miss an enquiry again! Save all Contact Form 7 submissions safely in your database.
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 1.3.2 =
|
41 |
+
* Minor bug fix
|
42 |
+
|
43 |
= 1.3.2 =
|
44 |
* Removed filter that broke some RSS feeds
|
45 |
|