WordPress Social Sharing Plugin – Social Warfare - Version 2.3.2

Version Description

(25 AUG 2017) =

  • Updated the verbiage on the readme.txt
  • Fixed an error that was causing a handful of sites to lock up.
  • More improvements to the registration functions.
  • Fixed the shortcode parameters.
Download this release

Release Info

Developer WarfarePlugins
Plugin Icon 128x128 WordPress Social Sharing Plugin – Social Warfare
Version 2.3.2
Comparing to
See all releases

Code changes from version 2.3.1 to 2.3.2

functions/frontend-output/shortcodes.php CHANGED
@@ -9,14 +9,12 @@
9
  function socialWarfareShortcode( $atts ) {
10
  return socialWarfare( false,'after',false );
11
  }
12
- function social_warfareShortcode( $atts ) {
13
-
14
- $array = shortcode_atts( array(
15
- 'where' => 'after',
16
- 'echo' => false,
17
- 'content' => false
18
- ), $atts );
19
-
20
  $array['shortcode'] = true;
21
  $array['devs'] = true;
22
  return social_warfare( $array );
9
  function socialWarfareShortcode( $atts ) {
10
  return socialWarfare( false,'after',false );
11
  }
12
+ function social_warfareShortcode( $array ) {
13
+
14
+ if ( ! isset( $array['where'] ) ) { $array['where'] = 'after'; }
15
+ if ( ! isset( $array['echo'] ) ) { $array['echo'] = false; }
16
+ if ( ! isset( $array['content'] ) ) { $array['content'] = false; }
17
+
 
 
18
  $array['shortcode'] = true;
19
  $array['devs'] = true;
20
  return social_warfare( $array );
functions/utilities/curl_functions.php CHANGED
@@ -99,7 +99,7 @@ function swp_file_get_contents_curl( $url ) {
99
  $curl_errno = curl_errno( $ch );
100
  curl_close( $ch );
101
  if ( $curl_errno > 0 ) {
102
- return 0;
103
  }
104
  return $cont;
105
  }
99
  $curl_errno = curl_errno( $ch );
100
  curl_close( $ch );
101
  if ( $curl_errno > 0 ) {
102
+ return false;
103
  }
104
  return $cont;
105
  }
functions/utilities/utility.php CHANGED
@@ -342,21 +342,6 @@ function swp_get_post_types() {
342
 
343
  }
344
 
345
- /**
346
- * A function to notify premium users about installing the pro addon
347
- *
348
- * @since 2.2.0
349
- * @return void
350
- */
351
- function swp_premium_update_notification() {
352
- global $swp_user_options;
353
-
354
- if(!empty($swp_user_options['premiumCode']) && !defined('SWPP_PLUGIN_DIR')):
355
- echo '<div class="update-nag notice is-dismissable"><p>' . __( '<b>Important:</b> We’ve made <a href="https://warfareplugins.com/social-warfare-2-2/" target="_blank">some changes</a> to how your Social Warfare premium license is applied. In order to continue getting all the Pro features you love, please <a href="https://warfareplugins.com/updates/social-warfare-pro/social-warfare-pro.zip">download the Social Warfare - Pro</a> plugin. Once installed, all of your premium features will be immediately restored.', 'social-warfare' ) . '</p></div>';
356
- endif;
357
- }
358
- add_action( 'admin_notices', 'swp_premium_update_notification' );
359
-
360
  /**
361
  * A function to remove the screen options tab from our admin page
362
  * @since 2.2.1
342
 
343
  }
344
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  /**
346
  * A function to remove the screen options tab from our admin page
347
  * @since 2.2.1
readme.txt CHANGED
@@ -1,29 +1,23 @@
1
  === Social Warfare ===
2
  Contributors: holas84, dustinwstout, webinator, warfareplugins, nutsandboltsmedia
3
- Tags: addthis, addtoany, analytics, bitly, buffer, button, click to tweet, digg, email, emailbutton, facebook, facebookbutton, facebooklike, facebookshare, flipboard, floatingbuttons, floatingsharebuttons, followbuttons, frameblocker, framebuster, google+1, googleanalyticsintegration, googleplus, googleplusone, googleplusshare, hackernews, iframeblocker, iframebuster, likebutton, linkshortening, linkedin, mobilesharebar, mobilesharing, opengraph, pin, pinbutton, pinit, pinterest, pinterestsave, pinterestshare, plusone, pocket, reddit, richpins, share, sharebutton, sharebuttonsplugin, sharecountrecovery, sharecounts, sharefacebook, shareimage, sharenow, sharethis, sharebar, shareholic, sharify, sharingbuttons, social, socialbookmark, socialbuttons, socialicons, socialmedia, socialmediashare, socialmediasharing, socialmediawidget, socialplugin, socialshare, socialsharebuttons, socialsharing, socialize, stumbleupon, sumome, tumblr, tweet, tweetbutton, tweetcount, twitter, twitterbutton, twittercards, twittercounts, utm, utmtracking, whatsapp, yumbutton, yummly
4
  Requires at least: 3.5.1
5
  Tested up to: 4.8
6
- Stable tag: 2.3.0
7
  License: GNU General Public License v2.0 or later
8
 
9
- The most beautiful, lightning fast social sharing buttons built to boost shares and drive more traffic without slowing down your site.
10
 
11
  == Description ==
12
 
13
- Social Warfare helps you get your content shared the way you want it to be shared. Get more shares and drive more traffic now with the best sharing plugin for WordPress!
14
 
15
  = WordPress Sharing Plugin =
16
- Did you know that <em>how</em> your content is shared is more important than <em>if</em> it's shared? Why? Because if it's shared in a way that doesn't drive traffic back to your site, it's worthless. What if you could make sure that every time your content is shared, it's shared in the most optimal way? That's where <a href="http://warfareplugins.com" rel="friend" title="Social Warfare">Social Warfare</a> can help. Social Warfare helps you customize how your content is shared and get more out of every single share that takes place on your website.
17
-
18
- > <strong>Social Warfare</strong><br>
19
- > Social Warfare is a premium WordPress plugin that has a limited set of free features. To access premium features and support you will need an active Social Warfare license. <a href="http://warfareplugins.com/" rel="friend" title="Social Warfare Plans">Click here to purchase your license.</a>
20
-
21
- = Free Social Sharing Options =
22
- Social Warfare is a lightning fast and highly customizable social share plugin with loads of features that make it the most effective sharing plugin on the market.
23
 
24
  Not only will it never slow down your website like other sharing plugins, we give you the most attractive buttons available that look great no matter what screen size or resolution.
25
 
26
- > Social Warfare has boosted social shares by <strong>300%</strong> without slowing down my blog.<br>
27
  > Eddie Gear - Professional Blogger
28
 
29
  You can choose from the top social networks sharing buttons, including:
@@ -33,6 +27,7 @@ You can choose from the top social networks sharing buttons, including:
33
  * Google+
34
  * Pinterest
35
  * LinkedIn
 
36
 
37
  You can also choose where you want the buttons to show up. Choose from the following placement options:
38
 
@@ -41,15 +36,20 @@ You can also choose where you want the buttons to show up. Choose from the follo
41
  * Both above and below the post content
42
  * None (or) Manual placement
43
 
44
- We also give you the ability to have floating share buttons follow your readers down the screen when static (non-floating) buttons are not in view. This way the reader will always have easy access to your share buttons, no matter where they scroll on your page.
 
 
 
45
 
46
  = Social Proof =
47
- Proudly display how many times your content has been shared-- <strong>even tweet counts (with a Premium license)<strong>! Social Proof is a powerful psychological tool that has been proven to influence even more shares.
 
 
48
 
49
  = Popular Posts Widget based on Social Share Counts =
50
  Wouldn't you love to show what your most popular posts are based on the number of social shares's they've received? Social Warfare allows you to do just that.
51
 
52
- You can even choose to display most popular posts on a specific social network!
53
 
54
  Social Warfare's Popular Posts widget allows you to display and customize the look with:
55
 
@@ -62,20 +62,21 @@ Social Warfare's Popular Posts widget allows you to display and customize the lo
62
  A simple and effective way to create tweetable quotes right inside your posts or pages. This has proven to increase the average number of tweets per article dramatically.
63
 
64
  = Use Shortcodes to Manually Place Share Buttons Anywhere =
65
- If you want to place buttons in the middle of an article, you can with our shortcode. How about adding share buttons in a page that actually share out a different page altogether (like a "Thank You" page with share buttons that share the "Subscribe" page)? You can do that as well!
66
 
67
- If you're experienced with PHP, you can also easily hook Social Warfare into your theme templates for hyper customization.
 
 
68
 
69
  = Content Protection =
70
- We've built our highly demanded <a href="https://wordpress.org/plugins/frame-buster/" rel="friend" title="Frame Buster">Frame Buster</a> right into Social Warfare so that you are protected from content hijackers seeking to place their advertisements on top of your content without your permission.
71
 
72
- > <strong>Social Warfare</strong><br>
73
- > Social Warfare is a premium WordPress plugin that has a limited set of free features. To access premium features and support you will need an active Social Warfare license. <a href="http://warfareplugins.com/" rel="friend" title="Social Warfare Plans">Click here to purchase your license.</a>
74
 
75
  = Premium Social Sharing Options =
76
- Premium license holders also get access to the following social network share buttons:
77
 
78
- * StumbleUpon
79
  * Reddit
80
  * Tumblr
81
  * Yummly
@@ -86,27 +87,27 @@ Premium license holders also get access to the following social network share bu
86
  * Flipboard
87
  * Email
88
 
89
- In addition to the extra social networks, you can also reactivate, track and display <strong>Twitter tweet counts</strong>!
90
 
91
  = Pin All the Images =
92
  Enabling the Image Hover Pin Button will place a "Pin" button over top of every image inside of your content when a reader hovers their mouse over it. This makes every image on your page highly sharable to Pinterest!
93
 
94
  = Powerful Share Customization =
95
- > "I use Social Warfare because how things are shared when I’m not there to do it is important!"<br>
96
  > Peg Fitzpatrick, author of The Art and Science of Social Media
97
 
98
- Social Warfare is among the pioneers of customizing how your content is shared, particularly with Pinterest. It allows you to decide exactly which image, title and description appears when your content is shared on sites like Facebook and Google+. This also applies to any other networks that use Open Graph data for social shares.
99
 
100
- On top of that, you can upload a <strong>custom Pinterest image</strong> and write a custom description so that when someone clicks the pin button, the exact image you've chosen shows up with exactly the description you've written. No more hoping that your readers choose the best image and write an optimal description for you!
101
 
102
  In addition to that, you can also write a custom tweet for when someone clicks on the Twitter button. The exact tweet you wrote will be displayed in the Twitter share box and Social Warfare will automatically add the link to your content and your @username to the end of it.
103
 
104
  These capabilities are what professional social media marketers and bloggers have been waiting for.
105
 
106
- = Social Warfare Sharing Options, Custom Design and Placements =
107
  Customize which sharing networks you display, how your buttons look and where they show up.
108
 
109
- You can choose from 6 different button shapes, 8 different color themes <strong>plus</strong> the ability to choose custom colors for your buttons. The design combinations are <em>unlimited</em>.
110
 
111
  You will also get 6 different Click to Tweet styles and an option to create your own style via your theme's CSS.
112
 
@@ -114,9 +115,9 @@ You will also get 6 different Click to Tweet styles and an option to create your
114
  If you would prefer to only show counts after a certain minimum number of shares has been met (to avoid "negative social proof"), you can do that as well. Or if you'd rather just have no counts showing at all, just turn them off altogether.
115
 
116
  = Share Recovery: Your Lost Share Counts Returned! =
117
- Have you ever changed permalink structures, domain prefixes, connection protocols (http-https) or just flat out changed domains and ended up <strong>losing all your social share counts?</strong>
118
 
119
- We've built a tool right into Social Warfare called <a href="https://warfareplugins.com/support/recover-social-share-counts-after-changing-permalink-settings/" rel="friend" title="Share Recovery">Share Recovery</a> which allows you to get back your lost share counts if you've ever had to modify your permalink settings.
120
 
121
  = Social Authorship, Twitter Cards, Rich Pins and More =
122
  It nice to have your stuff shared on social media, it's even nicer when you get mentioned in the social share! With Social Warfare you can ensure that your authorship is always in place, including:
@@ -150,9 +151,9 @@ This section describes how to install the plugin.
150
 
151
  == Frequently Asked Questions ==
152
 
153
- = I downloaded this plugin but don't have an Social Warfare premium license. How can I get one? =
154
 
155
- You can sign up for an Social Warfare premium license by <a href="https://warfareplugins.com/" rel="friend" title="Social Warfare Plans and Pricing">visiting our website</a> and choosing the package that best suits your needs.
156
 
157
  = How do I use the shortcodes? =
158
 
@@ -160,7 +161,7 @@ Shortcodes are used like so: [social_warfare]. If you would like to specify a di
160
 
161
  = Something isn't working as expected. How can I get support? =
162
 
163
- We have a growing archive of <a href="https://warfareplugins.com/support" rel="friend" title="Warfare Plugins Support">Support Articles</a> to help you address most questions and troubleshooting. If you wish to recieve email support, you will need a Premium license.
164
 
165
  == Screenshots ==
166
 
@@ -169,12 +170,18 @@ We have a growing archive of <a href="https://warfareplugins.com/support" rel="f
169
 
170
  = Testimonial =
171
 
172
- > I use Social Warfare because how things are shared when I’m not there to do it is important!<br>
173
  > Peg Fitzpatrick, Social Media Strategist
174
 
 
 
 
175
  > It's a beautiful, super lightweight, and highly customizable plugin. I love everything about it!<br>
176
  > Rebekah Radice, Social Media Strategist
177
 
 
 
 
178
  > I use Social Warfare because it's the only sharing plugin that can be customized to blend seamlessly with my branding.<br>
179
  > Andrea Beltrami, Visual Marketer
180
 
@@ -186,6 +193,13 @@ We have a growing archive of <a href="https://warfareplugins.com/support" rel="f
186
 
187
  == Changelog ==
188
 
 
 
 
 
 
 
 
189
  = 2.3.1 (20 AUG 2017) =
190
 
191
  * Fixed some issues with the registration system.
1
  === Social Warfare ===
2
  Contributors: holas84, dustinwstout, webinator, warfareplugins, nutsandboltsmedia
3
+ Tags: sharing buttons, social media share, floating share buttons, facebook share, google plus share, linkedin share, pin it, pinterest save, stumbleupon button, tweet button, twitter share, click to tweet
4
  Requires at least: 3.5.1
5
  Tested up to: 4.8
6
+ Stable tag: 2.3.2
7
  License: GNU General Public License v2.0 or later
8
 
9
+ The most beautiful, lightning fast social media sharing buttons built to boost shares and drive more traffic without slowing down your site.
10
 
11
  == Description ==
12
 
13
+ Get more social media shares which can lead to more website traffic with the best sharing plugin for WordPress! Built by a group of social media marketing experts and world class developers who are obsessed with performance. Learn more at <a href="http://https://warfareplugins.com/?utm_medium=repository&utm_campaign=description&utm_source=wordpress_org&utm_content=repo_description" rel="friend" target="_blank">Warfare Plugins</a>.
14
 
15
  = WordPress Sharing Plugin =
16
+ Most social sharing plugins for WordPress slow down your site, are not attractive, and don't work the way you would hope. Social Warfare is both lightning fast and beautiful.
 
 
 
 
 
 
17
 
18
  Not only will it never slow down your website like other sharing plugins, we give you the most attractive buttons available that look great no matter what screen size or resolution.
19
 
20
+ > Social Warfare has boosted social shares by **300%** without slowing down my blog.<br>
21
  > Eddie Gear - Professional Blogger
22
 
23
  You can choose from the top social networks sharing buttons, including:
27
  * Google+
28
  * Pinterest
29
  * LinkedIn
30
+ * StumbleUpon
31
 
32
  You can also choose where you want the buttons to show up. Choose from the following placement options:
33
 
36
  * Both above and below the post content
37
  * None (or) Manual placement
38
 
39
+ We also give you the ability to have **floating share buttons** follow your readers down the screen when static (non-floating) buttons are not in view. This way the reader will always have easy access to your share buttons, no matter where they scroll on your page.
40
+
41
+ > "This is by far the best looking social sharing plugin I have seen on the net!"<br>
42
+ > David Foster, Online Personality
43
 
44
  = Social Proof =
45
+ Proudly display how many times your content has been shared-- **even tweet counts (with a _Social Warfare - Pro_ license)**! Social Proof is a powerful psychological tool that has been proven to influence even more shares.
46
+
47
+ We use the social network API endpoints to ensure that the most accurate share counts are always displayed.
48
 
49
  = Popular Posts Widget based on Social Share Counts =
50
  Wouldn't you love to show what your most popular posts are based on the number of social shares's they've received? Social Warfare allows you to do just that.
51
 
52
+ You can even choose to display most your popular posts based on which social network they were popular on!
53
 
54
  Social Warfare's Popular Posts widget allows you to display and customize the look with:
55
 
62
  A simple and effective way to create tweetable quotes right inside your posts or pages. This has proven to increase the average number of tweets per article dramatically.
63
 
64
  = Use Shortcodes to Manually Place Share Buttons Anywhere =
65
+ If you want to place buttons in the middle of an article, you can with our `[social_warfare]` shortcode.
66
 
67
+ What if you wanted to add share buttons to a page but actually have them share out a different page altogether (like being able to share your “Sign-up” page from your “Thank You” page)? Social Warfare allows you to do this!
68
+
69
+ If you're experienced with PHP, you can also hook Social Warfare into your theme templates for hyper customization.
70
 
71
  = Content Protection =
72
+ We've built our highly demanded <a href="https://wordpress.org/plugins/frame-buster/">Frame Buster</a> right into Social Warfare so that you are protected from content hijackers seeking to place their advertisements on top of your content without your permission.
73
 
74
+ > Social Warfare is by far the best social sharing plugin I’ve ever used. I recommend it to all of my clients.<br>
75
+ > Andrew Wilder, Marketing Consultant
76
 
77
  = Premium Social Sharing Options =
78
+ _Social Warfare - Pro_ license holders also get access to the following social network share buttons:
79
 
 
80
  * Reddit
81
  * Tumblr
82
  * Yummly
87
  * Flipboard
88
  * Email
89
 
90
+ In addition to the extra social networks, you can also reactivate, track and display **Twitter tweet counts**!
91
 
92
  = Pin All the Images =
93
  Enabling the Image Hover Pin Button will place a "Pin" button over top of every image inside of your content when a reader hovers their mouse over it. This makes every image on your page highly sharable to Pinterest!
94
 
95
  = Powerful Share Customization =
96
+ > "I use Social Warfare - Pro because how things are shared when I’m not there to do it is important!"<br>
97
  > Peg Fitzpatrick, author of The Art and Science of Social Media
98
 
99
+ Social Warfare is among the pioneers of customizing how your content is shared, particularly with Pinterest. The _Social Warfare - Pro_ add-on allows you to decide exactly which image, title and description appears when your content is shared on sites like Facebook and Google+. This also applies to any other networks that use Open Graph data for social shares.
100
 
101
+ On top of that, you can upload a **custom Pinterest image** and write a custom description so that when someone clicks the pin button, the exact image you've chosen shows up with exactly the description you've written. No more hoping that your readers choose the best image and write an optimal description for you!
102
 
103
  In addition to that, you can also write a custom tweet for when someone clicks on the Twitter button. The exact tweet you wrote will be displayed in the Twitter share box and Social Warfare will automatically add the link to your content and your @username to the end of it.
104
 
105
  These capabilities are what professional social media marketers and bloggers have been waiting for.
106
 
107
+ = Social Warfare - Pro Sharing Options, Custom Design and Placements =
108
  Customize which sharing networks you display, how your buttons look and where they show up.
109
 
110
+ You can choose from 6 different button shapes, 8 different color themes **plus** the ability to choose custom colors for your buttons. The design combinations are _unlimited_.
111
 
112
  You will also get 6 different Click to Tweet styles and an option to create your own style via your theme's CSS.
113
 
115
  If you would prefer to only show counts after a certain minimum number of shares has been met (to avoid "negative social proof"), you can do that as well. Or if you'd rather just have no counts showing at all, just turn them off altogether.
116
 
117
  = Share Recovery: Your Lost Share Counts Returned! =
118
+ Have you ever changed permalink structures, domain prefixes, connection protocols (http-https) or just flat out changed domains and ended up **losing all your social share counts?**
119
 
120
+ We've built a tool right into Social Warfare called <a href="https://warfareplugins.com/support/recover-social-share-counts-after-changing-permalink-settings/?utm_medium=repository&utm_campaign=description&utm_source=wordpress_org&utm_content=repo_description" target="_blank" rel="friend">Share Recovery</a> which allows you to get back your lost share counts if you've ever had to modify your permalink settings.
121
 
122
  = Social Authorship, Twitter Cards, Rich Pins and More =
123
  It nice to have your stuff shared on social media, it's even nicer when you get mentioned in the social share! With Social Warfare you can ensure that your authorship is always in place, including:
151
 
152
  == Frequently Asked Questions ==
153
 
154
+ = I downloaded this plugin but don't have an Social Warfare - Pro license. How can I get one? =
155
 
156
+ You can sign up for an Social Warfare premium license by <a href="https://warfareplugins.com/?utm_medium=repository&utm_campaign=description&utm_source=wordpress_org&utm_content=repo_faq" rel="friend" title="Social Warfare Plans and Pricing">visiting our website</a> and choosing the package that best suits your needs.
157
 
158
  = How do I use the shortcodes? =
159
 
161
 
162
  = Something isn't working as expected. How can I get support? =
163
 
164
+ We have a growing archive of <a href="https://warfareplugins.com/support/" rel="friend" title="Warfare Plugins Support">Support Articles</a> to help you address most questions and troubleshooting. If you wish to receive email support, you will need a Pro license.
165
 
166
  == Screenshots ==
167
 
170
 
171
  = Testimonial =
172
 
173
+ > I use Social Warfare - Pro because how things are shared when I’m not there to do it is important!<br>
174
  > Peg Fitzpatrick, Social Media Strategist
175
 
176
+ > Social Warfare is by far the best social-sharing-button plugin I’ve ever used. I recommend it to all of my clients.<br>
177
+ > Andrew Wilder, Consultant
178
+
179
  > It's a beautiful, super lightweight, and highly customizable plugin. I love everything about it!<br>
180
  > Rebekah Radice, Social Media Strategist
181
 
182
+ > "This is BY FAR the best looking social sharing plugin I have seen on the net!"<br>
183
+ > David Foster, Online Personality
184
+
185
  > I use Social Warfare because it's the only sharing plugin that can be customized to blend seamlessly with my branding.<br>
186
  > Andrea Beltrami, Visual Marketer
187
 
193
 
194
  == Changelog ==
195
 
196
+ = 2.3.2 (25 AUG 2017) =
197
+
198
+ * Updated the verbiage on the readme.txt
199
+ * Fixed an error that was causing a handful of sites to lock up.
200
+ * More improvements to the registration functions.
201
+ * Fixed the shortcode parameters.
202
+
203
  = 2.3.1 (20 AUG 2017) =
204
 
205
  * Fixed some issues with the registration system.
social-warfare.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Social Warfare
4
  * Plugin URI: http://warfareplugins.com
5
  * Description: A plugin to maximize social shares and drive more traffic using the fastest and most intelligent share buttons on the market, calls to action via in-post click-to-tweets, popular posts widgets based on share popularity, link-shortening, Google Analytics and much, much more!
6
- * Version: 2.3.1
7
  * Author: Warfare Plugins
8
  * Author URI: http://warfareplugins.com
9
  * Text Domain: social-warfare
@@ -15,7 +15,7 @@ defined( 'WPINC' ) || die;
15
  * Define plugin constants for use throughout the plugin (Version and Directories)
16
  *
17
  */
18
- define( 'SWP_VERSION' , '2.3.1' );
19
  define( 'SWP_PLUGIN_FILE', __FILE__ );
20
  define( 'SWP_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
21
  define( 'SWP_PLUGIN_DIR', dirname( __FILE__ ) );
3
  * Plugin Name: Social Warfare
4
  * Plugin URI: http://warfareplugins.com
5
  * Description: A plugin to maximize social shares and drive more traffic using the fastest and most intelligent share buttons on the market, calls to action via in-post click-to-tweets, popular posts widgets based on share popularity, link-shortening, Google Analytics and much, much more!
6
+ * Version: 2.3.2
7
  * Author: Warfare Plugins
8
  * Author URI: http://warfareplugins.com
9
  * Text Domain: social-warfare
15
  * Define plugin constants for use throughout the plugin (Version and Directories)
16
  *
17
  */
18
+ define( 'SWP_VERSION' , '2.3.2' );
19
  define( 'SWP_PLUGIN_FILE', __FILE__ );
20
  define( 'SWP_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
21
  define( 'SWP_PLUGIN_DIR', dirname( __FILE__ ) );