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

Version Description

Download this release

Release Info

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

Code changes from version 5.0.2 to 5.0.3

facebook-pixel-master.php CHANGED
@@ -5,7 +5,7 @@
5
  Plugin URI: http://www.pixelyoursite.com/facebook-pixel-plugin-help
6
  Author: PixelYourSite
7
  Author URI: http://www.pixelyoursite.com
8
- Version: 5.0.2
9
  License: GPLv3
10
  */
11
 
@@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
13
  exit; // Exit if accessed directly.
14
  }
15
 
16
- define( 'PYS_FREE_VERSION', '5.0.2' );
17
 
18
  require_once( 'inc/admin_notices.php' );
19
  require_once( 'inc/common.php' );
5
  Plugin URI: http://www.pixelyoursite.com/facebook-pixel-plugin-help
6
  Author: PixelYourSite
7
  Author URI: http://www.pixelyoursite.com
8
+ Version: 5.0.3
9
  License: GPLv3
10
  */
11
 
13
  exit; // Exit if accessed directly.
14
  }
15
 
16
+ define( 'PYS_FREE_VERSION', '5.0.3' );
17
 
18
  require_once( 'inc/admin_notices.php' );
19
  require_once( 'inc/common.php' );
inc/common.php CHANGED
@@ -1006,7 +1006,7 @@ if( !function_exists( 'pys_get_woo_checkout_params' ) ) {
1006
  $params['num_items'] = $woocommerce->cart->get_cart_contents_count();
1007
  }
1008
 
1009
- $params['content_ids'] = '[' . implode( ',', $ids ) . ']';
1010
 
1011
  if ( ! empty( $names ) ) {
1012
  $params['content_name'] = $names;
1006
  $params['num_items'] = $woocommerce->cart->get_cart_contents_count();
1007
  }
1008
 
1009
+ $params['content_ids'] = "['" . implode( "','", $ids ) . "']";
1010
 
1011
  if ( ! empty( $names ) ) {
1012
  $params['content_name'] = $names;
inc/core-edd.php CHANGED
@@ -21,7 +21,7 @@ if ( ! function_exists( 'pys_edd_events' ) ) {
21
  // ViewContent Event
22
  if ( pys_get_option( 'edd', 'on_view_content' ) && is_singular( array( 'download' ) ) ) {
23
 
24
- $params['content_ids'] = '[' . pys_get_edd_content_id( $post->ID ) . ']';
25
 
26
  // currency, value
27
  if ( pys_get_option( 'edd', 'enable_view_content_value' ) ) {
@@ -55,7 +55,7 @@ if ( ! function_exists( 'pys_edd_events' ) ) {
55
 
56
  }
57
 
58
- $params['content_ids'] = '[' . implode( ',', $ids ) . ']';
59
 
60
  // currency, value
61
  if ( pys_get_option( 'edd', 'enable_checkout_value' ) ) {
@@ -118,7 +118,7 @@ if ( ! function_exists( 'pys_edd_events' ) ) {
118
 
119
  }
120
 
121
- $params['content_ids'] = '[' . implode( ',', $ids ) . ']';
122
 
123
  // currency, value
124
  if ( pys_get_option( 'edd', 'enable_purchase_value' ) ) {
@@ -148,7 +148,7 @@ if ( ! function_exists( 'pys_edd_purchase_link_args' ) ) {
148
 
149
  $params = array();
150
  $params['content_type'] = 'product';
151
- $params['content_ids'] = '[' . pys_get_edd_content_id( $download_id ) . ']';
152
 
153
  // currency, value
154
  if ( pys_get_option( 'edd', 'enable_add_to_cart_value' ) ) {
21
  // ViewContent Event
22
  if ( pys_get_option( 'edd', 'on_view_content' ) && is_singular( array( 'download' ) ) ) {
23
 
24
+ $params['content_ids'] = "['" . pys_get_edd_content_id( $post->ID ) . "']";
25
 
26
  // currency, value
27
  if ( pys_get_option( 'edd', 'enable_view_content_value' ) ) {
55
 
56
  }
57
 
58
+ $params['content_ids'] = "'[" . implode( "','", $ids ) . "']";
59
 
60
  // currency, value
61
  if ( pys_get_option( 'edd', 'enable_checkout_value' ) ) {
118
 
119
  }
120
 
121
+ $params['content_ids'] = "['" . implode( "','", $ids ) . "']";
122
 
123
  // currency, value
124
  if ( pys_get_option( 'edd', 'enable_purchase_value' ) ) {
148
 
149
  $params = array();
150
  $params['content_type'] = 'product';
151
+ $params['content_ids'] = "['" . pys_get_edd_content_id( $download_id ) . "']";
152
 
153
  // currency, value
154
  if ( pys_get_option( 'edd', 'enable_add_to_cart_value' ) ) {
inc/core.php CHANGED
@@ -10,7 +10,7 @@ if ( ! function_exists( 'pys_get_woo_ajax_addtocart_params' ) ) {
10
 
11
  $params = array();
12
  $params['content_type'] = 'product';
13
- $params['content_ids'] = '[' . pys_get_product_content_id( $product_id ) . ']';
14
 
15
  // currency, value
16
  if ( pys_get_option( 'woo', 'enable_add_to_cart_value' ) ) {
@@ -70,7 +70,7 @@ if ( ! function_exists( 'pys_get_woo_code' ) ) {
70
  // ViewContent Event
71
  if ( pys_get_option( 'woo', 'on_view_content' ) && is_product() ) {
72
 
73
- $params['content_ids'] = '[' . pys_get_product_content_id( $post->ID ) . ']';
74
 
75
  // currency, value
76
  if ( pys_get_option( 'woo', 'enable_view_content_value' ) ) {
@@ -113,7 +113,7 @@ if ( ! function_exists( 'pys_get_woo_code' ) ) {
113
 
114
  }
115
 
116
- $params['content_ids'] = '[' . implode( ',', $ids ) . ']';
117
 
118
  // currency, value
119
  if ( pys_get_option( 'woo', 'enable_add_to_cart_value' ) ) {
@@ -193,7 +193,7 @@ if ( ! function_exists( 'pys_get_woo_code' ) ) {
193
 
194
  }
195
 
196
- $params['content_ids'] = '[' . implode( ',', $ids ) . ']';
197
 
198
  // currency, value
199
  if ( pys_get_option( 'woo', 'enable_purchase_value' ) ) {
@@ -272,7 +272,7 @@ if ( ! function_exists( 'pys_add_code_to_woo_cart_link' ) ) {
272
  // common params
273
  $params = array();
274
  $params['content_type'] = 'product';
275
- $params['content_ids'] = '[' . pys_get_product_content_id( $product_id ) . ']';
276
 
277
  // currency, value
278
  if ( pys_get_option( 'woo', 'enable_add_to_cart_value' ) ) {
10
 
11
  $params = array();
12
  $params['content_type'] = 'product';
13
+ $params['content_ids'] = "['" . pys_get_product_content_id( $product_id ) . "']";
14
 
15
  // currency, value
16
  if ( pys_get_option( 'woo', 'enable_add_to_cart_value' ) ) {
70
  // ViewContent Event
71
  if ( pys_get_option( 'woo', 'on_view_content' ) && is_product() ) {
72
 
73
+ $params['content_ids'] = "['" . pys_get_product_content_id( $post->ID ) . "']";
74
 
75
  // currency, value
76
  if ( pys_get_option( 'woo', 'enable_view_content_value' ) ) {
113
 
114
  }
115
 
116
+ $params['content_ids'] = "['" . implode( "','", $ids ) . "']";
117
 
118
  // currency, value
119
  if ( pys_get_option( 'woo', 'enable_add_to_cart_value' ) ) {
193
 
194
  }
195
 
196
+ $params['content_ids'] = "['" . implode( "','", $ids ) . "']";
197
 
198
  // currency, value
199
  if ( pys_get_option( 'woo', 'enable_purchase_value' ) ) {
272
  // common params
273
  $params = array();
274
  $params['content_type'] = 'product';
275
+ $params['content_ids'] = "['" . pys_get_product_content_id( $product_id ) . "']";
276
 
277
  // currency, value
278
  if ( pys_get_option( 'woo', 'enable_add_to_cart_value' ) ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: PixelYourSite, c0d3fev3r, themister
3
  Tags: Facebook Pixel, New Facebook Pixel, Facebook Conversion Pixel, Facebook Pixel Events, Facebook, New Facebook Pixel Events, Dynamic Events, Standard Events, Facebook Events, Facebook Standard Events, Facebook Dynamic Product Ads, WooCommerce, WooCommerce Facebook Pixel, Facebook Custom Events, Facebook Conversion Value, WooCommerce Affiliate Products, Easy Digital Downloads Pixel, Easy Digital Downloads Facebook Pixel
4
  Requires at least: 3.0.1
5
  Tested up to: 4.7
6
- Stable tag: 5.0.2
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -307,6 +307,10 @@ We have an article about how to create Custom Reports:
307
 
308
  == Changelog ==
309
 
 
 
 
 
310
  = PixelYourSite 5.0.2 =
311
 
312
  * Added agent identifier (dvpixelyoursite) as we were directly requested by Facebook
@@ -314,7 +318,6 @@ We have an article about how to create Custom Reports:
314
  * Dynamic WooCommerce Events Value based on the product price
315
  * Facebook for WooCommerce support
316
 
317
-
318
  = PixelYourSite 5.0.1 =
319
 
320
  * WooCommerce 2.7 compatibility update: we made sure everything works with the latest WooCommerce version.
3
  Tags: Facebook Pixel, New Facebook Pixel, Facebook Conversion Pixel, Facebook Pixel Events, Facebook, New Facebook Pixel Events, Dynamic Events, Standard Events, Facebook Events, Facebook Standard Events, Facebook Dynamic Product Ads, WooCommerce, WooCommerce Facebook Pixel, Facebook Custom Events, Facebook Conversion Value, WooCommerce Affiliate Products, Easy Digital Downloads Pixel, Easy Digital Downloads Facebook Pixel
4
  Requires at least: 3.0.1
5
  Tested up to: 4.7
6
+ Stable tag: 5.0.3
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
307
 
308
  == Changelog ==
309
 
310
+ = PixelYourSite 5.0.3 =
311
+
312
+ * WooCommerce and EDD content_ids potential issue fix (the content was not correctly wrapped, leaving room for errors when SKU was used instead of the default WordPress IDs)
313
+
314
  = PixelYourSite 5.0.2 =
315
 
316
  * Added agent identifier (dvpixelyoursite) as we were directly requested by Facebook
318
  * Dynamic WooCommerce Events Value based on the product price
319
  * Facebook for WooCommerce support
320
 
 
321
  = PixelYourSite 5.0.1 =
322
 
323
  * WooCommerce 2.7 compatibility update: we made sure everything works with the latest WooCommerce version.