Version Description
- Hook change to guarantee the plugin only runs when Contact Form 7 is present in the admin (avoids errors if Contact Form 7 is disabled, or if there is a plugin sequencing issue)
Download this release
Release Info
Developer | sevenspark |
Plugin | Contact Form 7 Dynamic Text Extension |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.0.1
- contact-form-7-dynamic-text-extension.php +5 -2
- readme.txt +6 -2
contact-form-7-dynamic-text-extension.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Contact Form 7 - Dynamic Text Extension
|
5 |
Plugin URI: http://sevenspark.com/wordpress-plugins/contact-form-7-dynamic-text-extension
|
6 |
Description: Provides a dynamic text field that accepts any shortcode to generate the content. Requires Contact Form 7
|
7 |
-
Version: 2.0
|
8 |
Author: Chris Mavricos, SevenSpark
|
9 |
Author URI: http://sevenspark.com
|
10 |
License: GPL2
|
@@ -160,11 +160,14 @@ function wpcf7dtx_dynamictext_validation_filter( $result, $tag ) {
|
|
160 |
|
161 |
|
162 |
if ( is_admin() ) {
|
163 |
-
add_action( 'admin_init', 'wpcf7dtx_add_tag_generator_dynamictext', 25 );
|
|
|
164 |
}
|
165 |
|
166 |
function wpcf7dtx_add_tag_generator_dynamictext() {
|
167 |
|
|
|
|
|
168 |
$tag_generator = WPCF7_TagGenerator::get_instance();
|
169 |
$tag_generator->add( 'dynamictext', __( 'dynamic text', 'contact-form-7' ),
|
170 |
'wpcf7dtx_tag_generator_dynamictext' );
|
4 |
Plugin Name: Contact Form 7 - Dynamic Text Extension
|
5 |
Plugin URI: http://sevenspark.com/wordpress-plugins/contact-form-7-dynamic-text-extension
|
6 |
Description: Provides a dynamic text field that accepts any shortcode to generate the content. Requires Contact Form 7
|
7 |
+
Version: 2.0.1
|
8 |
Author: Chris Mavricos, SevenSpark
|
9 |
Author URI: http://sevenspark.com
|
10 |
License: GPL2
|
160 |
|
161 |
|
162 |
if ( is_admin() ) {
|
163 |
+
//add_action( 'admin_init', 'wpcf7dtx_add_tag_generator_dynamictext', 25 );
|
164 |
+
add_action( 'wpcf7_admin_init' , 'wpcf7dtx_add_tag_generator_dynamictext' , 100 );
|
165 |
}
|
166 |
|
167 |
function wpcf7dtx_add_tag_generator_dynamictext() {
|
168 |
|
169 |
+
if ( ! class_exists( 'WPCF7_TagGenerator' ) ) return;
|
170 |
+
|
171 |
$tag_generator = WPCF7_TagGenerator::get_instance();
|
172 |
$tag_generator->add( 'dynamictext', __( 'dynamic text', 'contact-form-7' ),
|
173 |
'wpcf7dtx_tag_generator_dynamictext' );
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: sevenspark
|
|
3 |
Donate link: http://bit.ly/bVogDN
|
4 |
Tags: Contact Form 7, Contact, Contact Form, dynamic, text, input, GET, POST, title, slug
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.0
|
8 |
|
9 |
This plugin provides 2 new tag types for the Contact Form 7 Plugin. It allows the dynamic generation of content for a text input box via any shortcode.
|
10 |
It also offers dynamic hidden field functionality, which can be utilized to dynamically set the Email Recipient (To:) address.
|
@@ -189,6 +189,10 @@ None. Yet.
|
|
189 |
|
190 |
== Changelog ==
|
191 |
|
|
|
|
|
|
|
|
|
192 |
= 2.0 =
|
193 |
|
194 |
* Complete rewrite for Compatibility with Contact Form 7 v4
|
3 |
Donate link: http://bit.ly/bVogDN
|
4 |
Tags: Contact Form 7, Contact, Contact Form, dynamic, text, input, GET, POST, title, slug
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.4.1
|
7 |
+
Stable tag: 2.0.1
|
8 |
|
9 |
This plugin provides 2 new tag types for the Contact Form 7 Plugin. It allows the dynamic generation of content for a text input box via any shortcode.
|
10 |
It also offers dynamic hidden field functionality, which can be utilized to dynamically set the Email Recipient (To:) address.
|
189 |
|
190 |
== Changelog ==
|
191 |
|
192 |
+
= 2.0.1 =
|
193 |
+
|
194 |
+
* Hook change to guarantee the plugin only runs when Contact Form 7 is present in the admin (avoids errors if Contact Form 7 is disabled, or if there is a plugin sequencing issue)
|
195 |
+
|
196 |
= 2.0 =
|
197 |
|
198 |
* Complete rewrite for Compatibility with Contact Form 7 v4
|