PixelYourSite – Facebook Pixel (Events, WooCommerce & Easy Digital Downloads) - Version 2.2.1

Version Description

Download this release

Release Info

Developer PixelYourSite
Plugin Icon 128x128 PixelYourSite – Facebook Pixel (Events, WooCommerce & Easy Digital Downloads)
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2 to 2.2.1

Files changed (2) hide show
  1. inc/admin_notices.php +12 -27
  2. readme.txt +7 -2
inc/admin_notices.php CHANGED
@@ -35,7 +35,7 @@ $link_2 = 'http://www.pixelyoursite.com/super-offer?utm_source=wadmin&utm_medium
35
  //Message for day 1
36
  $day_1_text = '<span class="pysf_note"><b>Limited Offer, ends on “'.$expiration_date.'”:</b></span> If you are not using Dynamic Events - ';
37
  $day_1_text .= '<a href="http://www.pixelyoursite.com/facebook-pixel-dynamic-events" target="_blank">see guide</a>';
38
- $day_1_text .= ' - you are living money on the table. Optimize your ads for actions on your website, create better Custom Audiences, and get better conversion reports. ';
39
  $day_1_text .= '<a href="'.$link_1.'" target="_blank">Enable Dynamic Events with PixelYourSite PRO</a>';
40
 
41
  //Message for day 2
@@ -290,33 +290,13 @@ $woo_options = array(
290
  $notice .= $button_html;
291
  $notice .= '</div>';
292
 
293
-
294
- if( !$return)
295
- echo $notice;
296
- else
297
- return $notice;
298
- }
299
-
300
- }
301
-
302
- add_action('admin_footer', 'woofp_admin_noices_script');
303
- function woofp_admin_noices_script() {
304
-
305
- $script = "<script type='text/javascript'>
306
  jQuery(function($){
307
 
308
- jQuery(document).on( 'click', '.pysf_notice .notice-dismiss', function(e){
309
-
310
- e.preventDefault();
311
- e.stopPropagation();
312
- var class_name = jQuery(this).closest('.pysf_notice').attr('data-pysf');
313
 
314
- jQuery('.'+class_name).each(function(){
315
 
316
- jQuery(this).closest('tr').remove();
317
-
318
- });
319
-
320
  jQuery.ajax({
321
  url: ajaxurl,
322
  data: {
@@ -325,16 +305,21 @@ function woofp_admin_noices_script() {
325
  }
326
  });
327
 
328
- return false;
329
-
330
  });
331
 
332
  });
333
  </script>";
 
 
 
 
 
 
334
 
335
- echo $script;
336
  }
337
 
 
 
338
  function woofp_admin_notices_action(){
339
  woofp_admin_notices();
340
  }
35
  //Message for day 1
36
  $day_1_text = '<span class="pysf_note"><b>Limited Offer, ends on “'.$expiration_date.'”:</b></span> If you are not using Dynamic Events - ';
37
  $day_1_text .= '<a href="http://www.pixelyoursite.com/facebook-pixel-dynamic-events" target="_blank">see guide</a>';
38
+ $day_1_text .= ' - you are leaving money on the table. Optimize your ads for actions on your website, create better Custom Audiences, and get better conversion reports. ';
39
  $day_1_text .= '<a href="'.$link_1.'" target="_blank">Enable Dynamic Events with PixelYourSite PRO</a>';
40
 
41
  //Message for day 2
290
  $notice .= $button_html;
291
  $notice .= '</div>';
292
 
293
+ $notice .= "<script type='text/javascript'>
 
 
 
 
 
 
 
 
 
 
 
 
294
  jQuery(function($){
295
 
296
+ jQuery(document).on( 'click', '.pysf_notice .notice-dismiss', function() {
 
 
 
 
297
 
298
+ jQuery(this).closest('.notice-dismiss').fadeOut('slow');
299
 
 
 
 
 
300
  jQuery.ajax({
301
  url: ajaxurl,
302
  data: {
305
  }
306
  });
307
 
 
 
308
  });
309
 
310
  });
311
  </script>";
312
+
313
+ if( !$return)
314
+ echo $notice;
315
+ else
316
+ return $notice;
317
+ }
318
 
 
319
  }
320
 
321
+
322
+
323
  function woofp_admin_notices_action(){
324
  woofp_admin_notices();
325
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: PixelYourSite, c0d3fev3r
3
  Tags: Facebook Pixel, Facebook, Facebook Conversion Pixel, Facebook Pixel Events, Tracking, Standard events, Facebook Events, Facebook Standard Events, New Facebook Pixel, Facebook Dynamic Ads, WooCommerce, Facebook Custom Events, Custom Events, Conversion pixel, track conversion, Facebook pixel WooCommerce, Facebook Ads, Facebook Campaign, Facebook Ads Campaign, Facebook Conversion Value, Conversion Value, WooCommerce Affiliate Products, Track Affiliate Products, Affiliate links, New Facebook Pixel WooCommerce, PayPal, Facebook Pixel PayPal, New Facebook Pixel Events, facebook standard events woocommerce, facebook tracking pixel woocommerce, facebook conversion pixel for woocommerce, new pixel, pixel plugin, tracking pixel
4
  Requires at least: 3.0.1
5
  Tested up to: 4.4.1
6
- Stable tag: 2.2
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -157,6 +157,11 @@ We have an article about how to optimize Facebook Ads Reports:
157
 
158
  == Changelog ==
159
 
 
 
 
 
 
160
  PixelYourSite 2.2
161
 
162
  - Introducing Dynamic Events (pro)
@@ -203,4 +208,4 @@ PixelYourSite 1.01
203
 
204
  == Upgrade Notice ==
205
 
206
- - Introducing Dynamic Events (pro) and our new Learning Section
3
  Tags: Facebook Pixel, Facebook, Facebook Conversion Pixel, Facebook Pixel Events, Tracking, Standard events, Facebook Events, Facebook Standard Events, New Facebook Pixel, Facebook Dynamic Ads, WooCommerce, Facebook Custom Events, Custom Events, Conversion pixel, track conversion, Facebook pixel WooCommerce, Facebook Ads, Facebook Campaign, Facebook Ads Campaign, Facebook Conversion Value, Conversion Value, WooCommerce Affiliate Products, Track Affiliate Products, Affiliate links, New Facebook Pixel WooCommerce, PayPal, Facebook Pixel PayPal, New Facebook Pixel Events, facebook standard events woocommerce, facebook tracking pixel woocommerce, facebook conversion pixel for woocommerce, new pixel, pixel plugin, tracking pixel
4
  Requires at least: 3.0.1
5
  Tested up to: 4.4.1
6
+ Stable tag: 2.2.1
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
157
 
158
  == Changelog ==
159
 
160
+ PixelYourSite 2.2.1
161
+
162
+ - Fixing not closing admin notice error
163
+
164
+
165
  PixelYourSite 2.2
166
 
167
  - Introducing Dynamic Events (pro)
208
 
209
  == Upgrade Notice ==
210
 
211
+ - The admin message had an error and was not possible to dismiss it. This update is a fix for the problem.