Contact Form by WPForms – Drag & Drop Form Builder for WordPress - Version 1.1.7.2

Version Description

  • Added: "WPForm" to new-content admin bar menu item
Download this release

Release Info

Developer jaredatch
Plugin Icon 128x128 Contact Form by WPForms – Drag & Drop Form Builder for WordPress
Version 1.1.7.2
Comparing to
See all releases

Code changes from version 1.1.7.1 to 1.1.7.2

Files changed (3) hide show
  1. includes/class-form.php +25 -0
  2. readme.txt +4 -1
  3. wpforms.php +2 -2
includes/class-form.php CHANGED
@@ -19,7 +19,11 @@ class WPForms_Form_Handler {
19
  */
20
  public function __construct() {
21
 
 
22
  $this->register_cpt();
 
 
 
23
  }
24
 
25
  /**
@@ -47,6 +51,27 @@ class WPForms_Form_Handler {
47
  register_post_type( 'wpforms', $args );
48
  }
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  /**
51
  * Fetches forms
52
  *
19
  */
20
  public function __construct() {
21
 
22
+ // Register wpforms custom post type
23
  $this->register_cpt();
24
+
25
+ // Add wpforms to new-content admin bar menu
26
+ add_action( 'admin_bar_menu', array( $this, 'admin_bar' ), 99 );
27
  }
28
 
29
  /**
51
  register_post_type( 'wpforms', $args );
52
  }
53
 
54
+ /**
55
+ * Adds "WPForm" item to new-content admin bar menu item.
56
+ *
57
+ * @since 1.1.7.2
58
+ * @param object $wp_admin_bar
59
+ */
60
+ public function admin_bar( $wp_admin_bar ) {
61
+
62
+ if ( !is_admin_bar_showing() || !current_user_can( apply_filters( 'wpforms_manage_cap', 'manage_options' ) ) ) {
63
+ return;
64
+ }
65
+
66
+ $args = array(
67
+ 'id' => 'wpform',
68
+ 'title' => 'WPForm',
69
+ 'href' => admin_url( 'admin.php?page=wpforms-builder' ),
70
+ 'parent' => 'new-content',
71
+ );
72
+ $wp_admin_bar->add_node( $args );
73
+ }
74
+
75
  /**
76
  * Fetches forms
77
  *
readme.txt CHANGED
@@ -1,6 +1,6 @@
1
  === Easy WordPress Contact Form Plugin - WPForms Lite ===
2
  Contributors: wpforms, jaredatch, smub
3
- Tags: contact form, contact form plugin, contact button, contact me, custom form, custom contact form, form builder, form manager, form, forms builder, forms creation, forms creator, captcha, recaptcha, Akismet, email form, web form, feedback form, payment form, survey form, donation form, email submit form, message form, mailchimp, mailchimp form, aweber, aweber form, paypal, paypal form, stripe, stripe form, getresponse, getresponse form, email subscription, contact form widget
4
  Requires at least: 4.4
5
  Tested up to: 4.5
6
  Stable tag: trunk
@@ -159,6 +159,9 @@ Syed Balkhi
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 1.1.7.1 =
163
  * Changed: Removed "New" field name prefix
164
 
1
  === Easy WordPress Contact Form Plugin - WPForms Lite ===
2
  Contributors: wpforms, jaredatch, smub
3
+ Tags: contact form, contact form plugin, contact button, contact me, custom form, custom contact form, form builder, form manager, form, forms builder, forms creator, captcha, recaptcha, Akismet, email form, web form, feedback form, payment form, survey form, donation form, email submit form, message form, mailchimp, mailchimp form, aweber, aweber form, paypal, paypal form, stripe, stripe form, getresponse, getresponse form, email subscription, contact form widget
4
  Requires at least: 4.4
5
  Tested up to: 4.5
6
  Stable tag: trunk
159
 
160
  == Changelog ==
161
 
162
+ = 1.1.7.2 =
163
+ * Added: "WPForm" to new-content admin bar menu item
164
+
165
  = 1.1.7.1 =
166
  * Changed: Removed "New" field name prefix
167
 
wpforms.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms.
6
  * Author: WPForms
7
  * Author URI: https://wpforms.com
8
- * Version: 1.1.7.1
9
  * Text Domain: wpforms
10
  * Domain Path: languages
11
  *
@@ -54,7 +54,7 @@ final class WPForms_Lite {
54
  * @since 1.0.0
55
  * @var sting
56
  */
57
- private $version = '1.1.7.1';
58
 
59
  /**
60
  * The form data handler instance.
5
  * Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms.
6
  * Author: WPForms
7
  * Author URI: https://wpforms.com
8
+ * Version: 1.1.7.2
9
  * Text Domain: wpforms
10
  * Domain Path: languages
11
  *
54
  * @since 1.0.0
55
  * @var sting
56
  */
57
+ private $version = '1.1.7.2';
58
 
59
  /**
60
  * The form data handler instance.