Version Description
Download this release
Release Info
Developer | |
Plugin | Official Facebook Pixel |
Version | 1.8.0 |
Comparing to | |
See all releases |
Code changes from version 1.7.25 to 1.8.0
- changelog.txt +4 -0
- core/FacebookPluginConfig.php +2 -2
- core/FacebookWordpressOptions.php +13 -3
- facebook-for-wordpress.php +1 -1
- integration/FacebookWordpressEasyDigitalDownloads.php +25 -53
- integration/FacebookWordpressFormidableForm.php +6 -9
- integration/FacebookWordpressGravityForms.php +29 -18
- integration/FacebookWordpressIntegrationBase.php +24 -9
- integration/FacebookWordpressNinjaForms.php +29 -46
- integration/FacebookWordpressWPForms.php +5 -12
- languages/official-facebook-pixel-ar_AR.po +1 -1
- languages/official-facebook-pixel-cs_CZ.po +1 -1
- languages/official-facebook-pixel-da_DK.po +1 -1
- languages/official-facebook-pixel-de_DE.po +1 -1
- languages/official-facebook-pixel-en_GB.po +1 -1
- languages/official-facebook-pixel-es_ES.po +1 -1
- languages/official-facebook-pixel-es_LA.po +1 -1
- languages/official-facebook-pixel-fi_FI.po +1 -1
- languages/official-facebook-pixel-fr_CA.po +1 -1
- languages/official-facebook-pixel-fr_FR.po +1 -1
- languages/official-facebook-pixel-he_IL.po +1 -1
- languages/official-facebook-pixel-it_IT.po +1 -1
- languages/official-facebook-pixel-ja_JP.po +1 -1
- languages/official-facebook-pixel-ko_KR.po +1 -1
- languages/official-facebook-pixel-nb_NO.po +1 -1
- languages/official-facebook-pixel-nl_NL.po +1 -1
- languages/official-facebook-pixel-pl_PL.po +1 -1
- languages/official-facebook-pixel-pt_BR.po +1 -1
- languages/official-facebook-pixel-pt_PT.po +1 -1
- languages/official-facebook-pixel-ru_RU.po +1 -1
- languages/official-facebook-pixel-sv_SE.po +1 -1
- languages/official-facebook-pixel-th_TH.po +1 -1
- languages/official-facebook-pixel-tr_TR.po +1 -1
- languages/official-facebook-pixel-vi_VN.po +1 -1
- languages/official-facebook-pixel-zh_CN.po +1 -1
- languages/official-facebook-pixel-zh_TW.po +1 -1
- languages/official-facebook-pixel.pot +1 -1
- readme.txt +10 -7
- vendor/autoload.php +1 -1
- vendor/composer/ClassLoader.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +3 -3
changelog.txt
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
*** Facebook for WordPress Changelog ***
|
|
|
|
|
|
|
|
|
2 |
2019-02-18 version 1.7.25
|
3 |
* remove get_called_class from the codebase
|
4 |
|
1 |
*** Facebook for WordPress Changelog ***
|
2 |
+
2019-12-02 version 1.8.0
|
3 |
+
* Support for WordPress 5.3
|
4 |
+
* Fix Gravity Forms confirmation redirect
|
5 |
+
|
6 |
2019-02-18 version 1.7.25
|
7 |
* remove get_called_class from the codebase
|
8 |
|
core/FacebookPluginConfig.php
CHANGED
@@ -20,7 +20,7 @@ namespace FacebookPixelPlugin\Core;
|
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
class FacebookPluginConfig {
|
23 |
-
const PLUGIN_VERSION = '1.
|
24 |
const SOURCE = 'wordpress';
|
25 |
const TEXT_DOMAIN = 'official-facebook-pixel';
|
26 |
|
@@ -38,7 +38,7 @@ class FacebookPluginConfig {
|
|
38 |
const PIXEL_ID_KEY = 'pixel_id';
|
39 |
const SETTINGS_KEY = 'facebook_config';
|
40 |
const USE_PII_KEY = 'use_pii';
|
41 |
-
const USE_ADVANCED_MATCHING_DEFAULT =
|
42 |
|
43 |
const IS_PIXEL_RENDERED = 'is_pixel_rendered';
|
44 |
const IS_NOSCRIPT_RENDERED = 'is_noscript_rendered';
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
class FacebookPluginConfig {
|
23 |
+
const PLUGIN_VERSION = '1.8.0';
|
24 |
const SOURCE = 'wordpress';
|
25 |
const TEXT_DOMAIN = 'official-facebook-pixel';
|
26 |
|
38 |
const PIXEL_ID_KEY = 'pixel_id';
|
39 |
const SETTINGS_KEY = 'facebook_config';
|
40 |
const USE_PII_KEY = 'use_pii';
|
41 |
+
const USE_ADVANCED_MATCHING_DEFAULT = null;
|
42 |
|
43 |
const IS_PIXEL_RENDERED = 'is_pixel_rendered';
|
44 |
const IS_NOSCRIPT_RENDERED = 'is_noscript_rendered';
|
core/FacebookWordpressOptions.php
CHANGED
@@ -34,13 +34,23 @@ class FacebookWordpressOptions {
|
|
34 |
return self::$options;
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
private static function setOptions() {
|
38 |
self::$options = \get_option(
|
39 |
FacebookPluginConfig::SETTINGS_KEY,
|
40 |
array(
|
41 |
-
FacebookPluginConfig::PIXEL_ID_KEY =>
|
42 |
-
|
43 |
-
FacebookPluginConfig::USE_PII_KEY => FacebookPluginConfig::USE_ADVANCED_MATCHING_DEFAULT,
|
44 |
));
|
45 |
// we need esc_js because the id is set through the form
|
46 |
self::$options[FacebookPluginConfig::PIXEL_ID_KEY] =
|
34 |
return self::$options;
|
35 |
}
|
36 |
|
37 |
+
public static function getDefaultPixelID() {
|
38 |
+
return is_null(FacebookPluginConfig::DEFAULT_PIXEL_ID)
|
39 |
+
? '' : FacebookPluginConfig::DEFAULT_PIXEL_ID;
|
40 |
+
}
|
41 |
+
|
42 |
+
// Default is on for unset config
|
43 |
+
public static function getDefaultUsePIIKey() {
|
44 |
+
return (!is_null(FacebookPluginConfig::USE_ADVANCED_MATCHING_DEFAULT)
|
45 |
+
&& !FacebookPluginConfig::USE_ADVANCED_MATCHING_DEFAULT) ? '0' : '1';
|
46 |
+
}
|
47 |
+
|
48 |
private static function setOptions() {
|
49 |
self::$options = \get_option(
|
50 |
FacebookPluginConfig::SETTINGS_KEY,
|
51 |
array(
|
52 |
+
FacebookPluginConfig::PIXEL_ID_KEY => self::getDefaultPixelID(),
|
53 |
+
FacebookPluginConfig::USE_PII_KEY => self::getDefaultUsePIIKey(),
|
|
|
54 |
));
|
55 |
// we need esc_js because the id is set through the form
|
56 |
self::$options[FacebookPluginConfig::PIXEL_ID_KEY] =
|
facebook-for-wordpress.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: <strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to a known issue, to workaround please refresh this page and activate plugin.***</em></strong> The Facebook pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use the Facebook pixel to understand the actions people are taking on your website and reach audiences you care about.
|
6 |
* Author: Facebook
|
7 |
* Author URI: https://www.facebook.com/
|
8 |
-
* Version: 1.
|
9 |
* Text Domain: official-facebook-pixel
|
10 |
*/
|
11 |
|
5 |
* Description: <strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to a known issue, to workaround please refresh this page and activate plugin.***</em></strong> The Facebook pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use the Facebook pixel to understand the actions people are taking on your website and reach audiences you care about.
|
6 |
* Author: Facebook
|
7 |
* Author URI: https://www.facebook.com/
|
8 |
+
* Version: 1.8.0
|
9 |
* Text Domain: official-facebook-pixel
|
10 |
*/
|
11 |
|
integration/FacebookWordpressEasyDigitalDownloads.php
CHANGED
@@ -26,9 +26,6 @@ class FacebookWordpressEasyDigitalDownloads extends FacebookWordpressIntegration
|
|
26 |
const PLUGIN_FILE = 'easy-digital-downloads/easy-digital-downloads.php';
|
27 |
const TRACKING_NAME = 'easy-digital-downloads';
|
28 |
|
29 |
-
private static $downloadID;
|
30 |
-
private static $paymentID;
|
31 |
-
|
32 |
private static $addToCartJS = "
|
33 |
jQuery(document).ready(function ($) {
|
34 |
$('.edd-add-to-cart').click(function (e) {
|
@@ -64,38 +61,31 @@ jQuery(document).ready(function ($) {
|
|
64 |
|
65 |
public static function injectPixelCode() {
|
66 |
// AddToCart
|
67 |
-
|
68 |
-
'edd_after_download_content',
|
69 |
-
|
70 |
-
|
71 |
|
72 |
// InitiateCheckout
|
73 |
self::addPixelFireForHook(array(
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
|
78 |
// Purchase
|
79 |
-
|
80 |
-
'edd_payment_receipt_after',
|
81 |
-
|
82 |
-
|
83 |
|
84 |
// ViewContent
|
85 |
-
|
86 |
-
'edd_after_download_content',
|
87 |
-
|
88 |
-
|
89 |
-
}
|
90 |
-
|
91 |
-
public static function injectAddToCartEventHook($download_id) {
|
92 |
-
add_action(
|
93 |
-
'wp_footer',
|
94 |
-
array(__CLASS__, 'injectAddToCartEvent'),
|
95 |
-
11);
|
96 |
}
|
97 |
|
98 |
-
public static function injectAddToCartEvent() {
|
99 |
if (FacebookPluginUtils::isAdmin()) {
|
100 |
return;
|
101 |
}
|
@@ -138,21 +128,12 @@ jQuery(document).ready(function ($) {
|
|
138 |
$code);
|
139 |
}
|
140 |
|
141 |
-
public static function
|
142 |
-
|
143 |
-
|
144 |
-
add_action(
|
145 |
-
'wp_footer',
|
146 |
-
array(__CLASS__, 'injectPurchaseEvent'),
|
147 |
-
11);
|
148 |
-
}
|
149 |
-
|
150 |
-
public static function injectPurchaseEvent() {
|
151 |
-
if (FacebookPluginUtils::isAdmin() || empty(static::$paymentID)) {
|
152 |
return;
|
153 |
}
|
154 |
|
155 |
-
$payment_meta = edd_get_payment_meta(
|
156 |
|
157 |
$content_ids = array();
|
158 |
$value = 0;
|
@@ -177,33 +158,24 @@ jQuery(document).ready(function ($) {
|
|
177 |
$code);
|
178 |
}
|
179 |
|
180 |
-
public static function
|
181 |
-
|
182 |
-
|
183 |
-
add_action(
|
184 |
-
'wp_footer',
|
185 |
-
array(__CLASS__, 'injectViewContentEvent'),
|
186 |
-
11);
|
187 |
-
}
|
188 |
-
|
189 |
-
public static function injectViewContentEvent() {
|
190 |
-
if (FacebookPluginUtils::isAdmin() || empty(static::$downloadID)) {
|
191 |
return;
|
192 |
}
|
193 |
|
194 |
$currency = edd_get_currency();
|
195 |
-
if (get_post_meta(
|
196 |
-
$prices = get_post_meta(
|
197 |
$price = array_shift($prices);
|
198 |
$value = $price['amount'];
|
199 |
} else {
|
200 |
-
$value = get_post_meta(
|
201 |
}
|
202 |
if (!$value) {
|
203 |
$value = 0;
|
204 |
}
|
205 |
$param = array(
|
206 |
-
'content_ids' => array(
|
207 |
'content_type' => 'product',
|
208 |
'currency' => $currency,
|
209 |
'value' => $value,
|
26 |
const PLUGIN_FILE = 'easy-digital-downloads/easy-digital-downloads.php';
|
27 |
const TRACKING_NAME = 'easy-digital-downloads';
|
28 |
|
|
|
|
|
|
|
29 |
private static $addToCartJS = "
|
30 |
jQuery(document).ready(function ($) {
|
31 |
$('.edd-add-to-cart').click(function (e) {
|
61 |
|
62 |
public static function injectPixelCode() {
|
63 |
// AddToCart
|
64 |
+
self::addPixelFireForHook(array(
|
65 |
+
'hook_name' => 'edd_after_download_content',
|
66 |
+
'classname' => __CLASS__,
|
67 |
+
'inject_function' => 'injectAddToCartEvent'));
|
68 |
|
69 |
// InitiateCheckout
|
70 |
self::addPixelFireForHook(array(
|
71 |
+
'hook_name' => 'edd_after_checkout_cart',
|
72 |
+
'classname' => __CLASS__,
|
73 |
+
'inject_function' => 'injectInitiateCheckoutEvent'));
|
74 |
|
75 |
// Purchase
|
76 |
+
self::addPixelFireForHook(array(
|
77 |
+
'hook_name' => 'edd_payment_receipt_after',
|
78 |
+
'classname' => __CLASS__,
|
79 |
+
'inject_function' => 'injectPurchaseEvent'));
|
80 |
|
81 |
// ViewContent
|
82 |
+
self::addPixelFireForHook(array(
|
83 |
+
'hook_name' => 'edd_after_download_content',
|
84 |
+
'classname' => __CLASS__,
|
85 |
+
'inject_function' => 'injectViewContentEvent'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
}
|
87 |
|
88 |
+
public static function injectAddToCartEvent($download_id) {
|
89 |
if (FacebookPluginUtils::isAdmin()) {
|
90 |
return;
|
91 |
}
|
128 |
$code);
|
129 |
}
|
130 |
|
131 |
+
public static function injectPurchaseEvent($payment) {
|
132 |
+
if (FacebookPluginUtils::isAdmin() || empty($payment->ID)) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
return;
|
134 |
}
|
135 |
|
136 |
+
$payment_meta = edd_get_payment_meta($payment->ID);
|
137 |
|
138 |
$content_ids = array();
|
139 |
$value = 0;
|
158 |
$code);
|
159 |
}
|
160 |
|
161 |
+
public static function injectViewContentEvent($download_id) {
|
162 |
+
if (FacebookPluginUtils::isAdmin() || empty($download_id)) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
return;
|
164 |
}
|
165 |
|
166 |
$currency = edd_get_currency();
|
167 |
+
if (get_post_meta($download_id, '_variable_pricing', true)) { // variable price
|
168 |
+
$prices = get_post_meta($download_id, 'edd_variable_prices', true);
|
169 |
$price = array_shift($prices);
|
170 |
$value = $price['amount'];
|
171 |
} else {
|
172 |
+
$value = get_post_meta($download_id, 'edd_price', true);
|
173 |
}
|
174 |
if (!$value) {
|
175 |
$value = 0;
|
176 |
}
|
177 |
$param = array(
|
178 |
+
'content_ids' => array($download_id),
|
179 |
'content_type' => 'product',
|
180 |
'currency' => $currency,
|
181 |
'value' => $value,
|
integration/FacebookWordpressFormidableForm.php
CHANGED
@@ -27,17 +27,14 @@ class FacebookWordpressFormidableForm extends FacebookWordpressIntegrationBase {
|
|
27 |
const TRACKING_NAME = 'formidable-lite';
|
28 |
|
29 |
public static function injectPixelCode() {
|
30 |
-
|
31 |
-
'frm_after_create_entry',
|
32 |
-
|
33 |
-
|
|
|
34 |
}
|
35 |
|
36 |
-
public static function
|
37 |
-
add_action('wp_footer', array(__CLASS__, 'injectLeadEvent'), 11);
|
38 |
-
}
|
39 |
-
|
40 |
-
public static function injectLeadEvent() {
|
41 |
if (FacebookPluginUtils::isAdmin()) {
|
42 |
return;
|
43 |
}
|
27 |
const TRACKING_NAME = 'formidable-lite';
|
28 |
|
29 |
public static function injectPixelCode() {
|
30 |
+
self::addPixelFireForHook(array(
|
31 |
+
'hook_name' => 'frm_after_create_entry',
|
32 |
+
'classname' => __CLASS__,
|
33 |
+
'inject_function' => 'injectLeadEvent',
|
34 |
+
'priority' => 30));
|
35 |
}
|
36 |
|
37 |
+
public static function injectLeadEvent($entry_id, $form_id) {
|
|
|
|
|
|
|
|
|
38 |
if (FacebookPluginUtils::isAdmin()) {
|
39 |
return;
|
40 |
}
|
integration/FacebookWordpressGravityForms.php
CHANGED
@@ -27,33 +27,44 @@ class FacebookWordpressGravityForms extends FacebookWordpressIntegrationBase {
|
|
27 |
const TRACKING_NAME = 'gravity-forms';
|
28 |
|
29 |
public static function injectPixelCode() {
|
30 |
-
|
31 |
-
'
|
32 |
-
array(__CLASS__, '
|
33 |
-
10,
|
34 |
}
|
35 |
|
36 |
-
public static function
|
37 |
-
add_action(
|
38 |
-
'wp_footer', array(__CLASS__, 'injectLeadEvent'),
|
39 |
-
11);
|
40 |
-
}
|
41 |
-
|
42 |
-
public static function injectLeadEvent() {
|
43 |
if (FacebookPluginUtils::isAdmin()) {
|
44 |
-
return;
|
45 |
}
|
46 |
|
47 |
-
$
|
48 |
-
|
49 |
-
|
50 |
-
printf("
|
51 |
<!-- Facebook Pixel Event Code -->
|
52 |
<script>
|
53 |
%s
|
54 |
</script>
|
55 |
<!-- End Facebook Pixel Event Code -->
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
}
|
27 |
const TRACKING_NAME = 'gravity-forms';
|
28 |
|
29 |
public static function injectPixelCode() {
|
30 |
+
add_filter(
|
31 |
+
'gform_confirmation',
|
32 |
+
array(__CLASS__, 'injectLeadEvent'),
|
33 |
+
10, 4);
|
34 |
}
|
35 |
|
36 |
+
public static function injectLeadEvent($confirmation, $form, $entry, $ajax) {
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
if (FacebookPluginUtils::isAdmin()) {
|
38 |
+
return $confirmation;
|
39 |
}
|
40 |
|
41 |
+
$pixel_code = FacebookPixel::getPixelLeadCode(
|
42 |
+
array(), self::TRACKING_NAME, false);
|
43 |
+
$code = sprintf("
|
|
|
44 |
<!-- Facebook Pixel Event Code -->
|
45 |
<script>
|
46 |
%s
|
47 |
</script>
|
48 |
<!-- End Facebook Pixel Event Code -->
|
49 |
+
", $pixel_code);
|
50 |
+
|
51 |
+
if (is_string($confirmation)) {
|
52 |
+
$confirmation .= $code;
|
53 |
+
} elseif ( is_array($confirmation) && isset($confirmation['redirect'])) {
|
54 |
+
$redirect_code = sprintf("
|
55 |
+
<!-- Facebook Pixel Gravity Forms Redirect Code -->
|
56 |
+
<script>%sdocument.location.href=%s;%s</script>
|
57 |
+
<!-- End Facebook Pixel Gravity Forms Redirect Code -->",
|
58 |
+
apply_filters('gform_cdata_open', ''),
|
59 |
+
defined('JSON_HEX_TAG') ?
|
60 |
+
json_encode($confirmation['redirect'], JSON_HEX_TAG)
|
61 |
+
: json_encode($confirmation['redirect']),
|
62 |
+
apply_filters('gform_cdata_close', '')
|
63 |
+
);
|
64 |
+
|
65 |
+
$confirmation = $code . $redirect_code;
|
66 |
+
}
|
67 |
+
|
68 |
+
return $confirmation;
|
69 |
}
|
70 |
}
|
integration/FacebookWordpressIntegrationBase.php
CHANGED
@@ -19,6 +19,8 @@ namespace FacebookPixelPlugin\Integration;
|
|
19 |
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
|
|
|
|
22 |
abstract class FacebookWordpressIntegrationBase {
|
23 |
const PLUGIN_FILE = '';
|
24 |
const TRACKING_NAME = '';
|
@@ -35,14 +37,27 @@ abstract class FacebookWordpressIntegrationBase {
|
|
35 |
$classname = $pixel_fire_for_hook_params['classname'];
|
36 |
$inject_function = $pixel_fire_for_hook_params['inject_function'];
|
37 |
$priority = isset($pixel_fire_for_hook_params['priority'])
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
}
|
19 |
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
+
use ReflectionMethod;
|
23 |
+
|
24 |
abstract class FacebookWordpressIntegrationBase {
|
25 |
const PLUGIN_FILE = '';
|
26 |
const TRACKING_NAME = '';
|
37 |
$classname = $pixel_fire_for_hook_params['classname'];
|
38 |
$inject_function = $pixel_fire_for_hook_params['inject_function'];
|
39 |
$priority = isset($pixel_fire_for_hook_params['priority'])
|
40 |
+
? $pixel_fire_for_hook_params['priority']
|
41 |
+
: 11;
|
42 |
+
|
43 |
+
$user_function = array(
|
44 |
+
// get derived class in base class
|
45 |
+
$classname,
|
46 |
+
$inject_function);
|
47 |
+
$reflection = new ReflectionMethod($classname, $inject_function);
|
48 |
+
$argc = $reflection->getNumberOfParameters();
|
49 |
+
$argv = $reflection->getParameters();
|
50 |
+
|
51 |
+
$callback = function () use ($user_function, $argv) {
|
52 |
+
$hook_wp_footer = function () use ($user_function, $argv) {
|
53 |
+
\call_user_func_array($user_function, $argv);
|
54 |
+
};
|
55 |
+
add_action(
|
56 |
+
'wp_footer',
|
57 |
+
$hook_wp_footer,
|
58 |
+
11);
|
59 |
+
};
|
60 |
+
|
61 |
+
add_action($hook_name, $callback, $priority, $argc);
|
62 |
}
|
63 |
}
|
integration/FacebookWordpressNinjaForms.php
CHANGED
@@ -26,62 +26,45 @@ class FacebookWordpressNinjaForms extends FacebookWordpressIntegrationBase {
|
|
26 |
const PLUGIN_FILE = 'ninja-forms/ninja-forms.php';
|
27 |
const TRACKING_NAME = 'ninja-forms';
|
28 |
|
29 |
-
private static $formID;
|
30 |
-
|
31 |
-
private static $leadJS = "
|
32 |
-
jQuery(document).ready(function($) {
|
33 |
-
var facebookWordpressNinjaFormsController = Marionette.Object.extend({
|
34 |
-
initialize: function() {
|
35 |
-
this.listenTo(Backbone.Radio.channel('form-' + '%s'), 'submit:response', this.actionSubmit);
|
36 |
-
},
|
37 |
-
actionSubmit: function(response) {
|
38 |
-
if (response.data && response.data.fields) {
|
39 |
-
%s
|
40 |
-
}
|
41 |
-
},
|
42 |
-
});
|
43 |
-
|
44 |
-
new facebookWordpressNinjaFormsController();
|
45 |
-
});
|
46 |
-
";
|
47 |
-
|
48 |
public static function injectPixelCode() {
|
49 |
add_action(
|
50 |
-
'
|
51 |
-
array(__CLASS__, 'injectLeadEventHook'),
|
52 |
-
11);
|
53 |
-
}
|
54 |
-
|
55 |
-
public static function injectLeadEventHook($form_id) {
|
56 |
-
static::$formID = $form_id;
|
57 |
-
|
58 |
-
// bug fixed for https://wordpress.org/support/topic/marionette-is-not-defined/
|
59 |
-
// using 90 here to make sure the Marionette is loaded
|
60 |
-
add_action(
|
61 |
-
'wp_footer',
|
62 |
array(__CLASS__, 'injectLeadEvent'),
|
63 |
-
|
64 |
}
|
65 |
|
66 |
-
public static function injectLeadEvent() {
|
67 |
if (FacebookPluginUtils::isAdmin()) {
|
68 |
-
return;
|
69 |
}
|
70 |
|
71 |
$param = array();
|
72 |
-
$pixel_code = FacebookPixel::getPixelLeadCode($param, self::TRACKING_NAME,
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
76 |
$pixel_code);
|
77 |
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
}
|
87 |
}
|
26 |
const PLUGIN_FILE = 'ninja-forms/ninja-forms.php';
|
27 |
const TRACKING_NAME = 'ninja-forms';
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
public static function injectPixelCode() {
|
30 |
add_action(
|
31 |
+
'ninja_forms_submission_actions',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
array(__CLASS__, 'injectLeadEvent'),
|
33 |
+
10, 2);
|
34 |
}
|
35 |
|
36 |
+
public static function injectLeadEvent($actions, $form_data) {
|
37 |
if (FacebookPluginUtils::isAdmin()) {
|
38 |
+
return $actions;
|
39 |
}
|
40 |
|
41 |
$param = array();
|
42 |
+
$pixel_code = FacebookPixel::getPixelLeadCode($param, self::TRACKING_NAME, true);
|
43 |
+
|
44 |
+
$code = sprintf("
|
45 |
+
<!-- Facebook Pixel Event Code -->
|
46 |
+
%s
|
47 |
+
<!-- End Facebook Pixel Event Code -->
|
48 |
+
",
|
49 |
$pixel_code);
|
50 |
|
51 |
+
foreach ($actions as $key => $action) {
|
52 |
+
if (!isset($action['settings']) || !isset($action['settings']['type'])) {
|
53 |
+
continue;
|
54 |
+
}
|
55 |
+
|
56 |
+
$type = $action['settings']['type'];
|
57 |
+
if (!is_string($type)) {
|
58 |
+
continue;
|
59 |
+
}
|
60 |
+
|
61 |
+
// inject code when form is submitted successfully
|
62 |
+
if ($type == 'successmessage') {
|
63 |
+
$action['settings']['success_msg'] .= $code;
|
64 |
+
$actions[$key] = $action;
|
65 |
+
}
|
66 |
+
}
|
67 |
+
|
68 |
+
return $actions;
|
69 |
}
|
70 |
}
|
integration/FacebookWordpressWPForms.php
CHANGED
@@ -37,20 +37,13 @@ jQuery(document).ready(function ($) {
|
|
37 |
";
|
38 |
|
39 |
public static function injectPixelCode() {
|
40 |
-
|
41 |
-
'wpforms_frontend_output',
|
42 |
-
|
43 |
-
|
44 |
}
|
45 |
|
46 |
-
public static function
|
47 |
-
add_action(
|
48 |
-
'wp_footer',
|
49 |
-
array(__CLASS__, 'injectLeadEvent'),
|
50 |
-
11);
|
51 |
-
}
|
52 |
-
|
53 |
-
public static function injectLeadEvent() {
|
54 |
if (FacebookPluginUtils::isAdmin()) {
|
55 |
return;
|
56 |
}
|
37 |
";
|
38 |
|
39 |
public static function injectPixelCode() {
|
40 |
+
self::addPixelFireForHook(array(
|
41 |
+
'hook_name' => 'wpforms_frontend_output',
|
42 |
+
'classname' => __CLASS__,
|
43 |
+
'inject_function' => 'injectLeadEvent'));
|
44 |
}
|
45 |
|
46 |
+
public static function injectLeadEvent($form_data) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
if (FacebookPluginUtils::isAdmin()) {
|
48 |
return;
|
49 |
}
|
languages/official-facebook-pixel-ar_AR.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-cs_CZ.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-da_DK.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-de_DE.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-en_GB.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-es_ES.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-es_LA.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-fi_FI.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-fr_CA.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-fr_FR.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-he_IL.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-it_IT.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-ja_JP.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-ko_KR.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-nb_NO.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-nl_NL.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-pl_PL.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-pt_BR.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-pt_PT.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-ru_RU.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-sv_SE.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-th_TH.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-pixel\n"
|
7 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
8 |
"PO-Revision-Date: 2018-11-28 17:37-0800\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-pixel\n"
|
7 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
8 |
"PO-Revision-Date: 2018-11-28 17:37-0800\n"
|
languages/official-facebook-pixel-tr_TR.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-vi_VN.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-zh_CN.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-zh_TW.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Official Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Official Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 1.8.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: facebook
|
3 |
Tags: Facebook, Facebook Conversion Pixel, Facebook Pixel, Facebook Pixel Events, facebook retargeting, facebook standard events
|
4 |
Requires at least: 4.4
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 5.3
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -15,13 +15,16 @@ Grow your business with Official Facebook Pixel!
|
|
15 |
|
16 |
This plugin will install a Facebook Pixel for your page. There is also built in support for other WordPress plugins. The Official Facebook Pixel allows you to fire lower funnel events: Lead, ViewContent, AddToCart, InitiateCheckout and Purchase. Tracking lower funnel events can help you understand the actions people are taking on your website. You can then use this information to make adjustments accordingly in your advertising campaigns.
|
17 |
|
18 |
-
Current plugins that we
|
|
|
19 |
* Contact Form 7
|
20 |
* Easy Digital Downloads
|
21 |
-
*
|
22 |
-
*
|
23 |
* MailChimp for WordPress
|
|
|
24 |
* WP eCommerce
|
|
|
25 |
|
26 |
== Installation ==
|
27 |
__To install from your WordPress site__ <br />
|
@@ -42,13 +45,13 @@ You can find more information on the [Facebook Pixel](https://www.facebook.com/b
|
|
42 |
You can refer to [this page](https://www.facebook.com/business/help/881403525362441?helpref=faq_content)
|
43 |
|
44 |
= Where can I find support? =
|
45 |
-
If you get stuck, or have any questions, you can ask for help in the [Official Facebook Pixel plugin forum](https://wordpress.org/support/plugin/official-facebook-pixel).
|
46 |
|
47 |
= I am a developer. Can I help improve the plugin? =
|
48 |
Of course! This plugin is open sourced on the Facebook Incubator GitHub. You can find the code and contribution instructions in the [plugin repository](https://github.com/facebookincubator/Facebook-Pixel-for-WordPress).
|
49 |
|
50 |
== Changelog ==
|
51 |
-
= 2019-02-18 version 1.
|
52 |
* remove get_called_class from the codebase
|
53 |
|
54 |
= 2019-02-10 version 1.7.24 =
|
2 |
Contributors: facebook
|
3 |
Tags: Facebook, Facebook Conversion Pixel, Facebook Pixel, Facebook Pixel Events, facebook retargeting, facebook standard events
|
4 |
Requires at least: 4.4
|
5 |
+
Tested up to: 5.3
|
6 |
Requires PHP: 5.3
|
7 |
+
Stable tag: 1.8.0
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
15 |
|
16 |
This plugin will install a Facebook Pixel for your page. There is also built in support for other WordPress plugins. The Official Facebook Pixel allows you to fire lower funnel events: Lead, ViewContent, AddToCart, InitiateCheckout and Purchase. Tracking lower funnel events can help you understand the actions people are taking on your website. You can then use this information to make adjustments accordingly in your advertising campaigns.
|
17 |
|
18 |
+
Current plugins that we support:
|
19 |
+
* Caldera Forms
|
20 |
* Contact Form 7
|
21 |
* Easy Digital Downloads
|
22 |
+
* Formidable Forms
|
23 |
+
* Gravity Forms
|
24 |
* MailChimp for WordPress
|
25 |
+
* Ninja Forms
|
26 |
* WP eCommerce
|
27 |
+
* WPForms
|
28 |
|
29 |
== Installation ==
|
30 |
__To install from your WordPress site__ <br />
|
45 |
You can refer to [this page](https://www.facebook.com/business/help/881403525362441?helpref=faq_content)
|
46 |
|
47 |
= Where can I find support? =
|
48 |
+
If you get stuck, or have any questions, you can ask for help in the [Official Facebook Pixel plugin forum](https://wordpress.org/support/plugin/official-facebook-pixel).
|
49 |
|
50 |
= I am a developer. Can I help improve the plugin? =
|
51 |
Of course! This plugin is open sourced on the Facebook Incubator GitHub. You can find the code and contribution instructions in the [plugin repository](https://github.com/facebookincubator/Facebook-Pixel-for-WordPress).
|
52 |
|
53 |
== Changelog ==
|
54 |
+
= 2019-02-18 version 1.8.0 =
|
55 |
* remove get_called_class from the codebase
|
56 |
|
57 |
= 2019-02-10 version 1.7.24 =
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit48c7cb6b37b5ec317810ba8fa4c1ce53::getLoader();
|
vendor/composer/ClassLoader.php
CHANGED
@@ -279,7 +279,7 @@ class ClassLoader
|
|
279 |
*/
|
280 |
public function setApcuPrefix($apcuPrefix)
|
281 |
{
|
282 |
-
$this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
|
283 |
}
|
284 |
|
285 |
/**
|
279 |
*/
|
280 |
public function setApcuPrefix($apcuPrefix)
|
281 |
{
|
282 |
+
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
|
283 |
}
|
284 |
|
285 |
/**
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit7ad5ca3108198187a4bc78a54a6f83c4
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit48c7cb6b37b5ec317810ba8fa4c1ce53
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit48c7cb6b37b5ec317810ba8fa4c1ce53', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit48c7cb6b37b5ec317810ba8fa4c1ce53', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit48c7cb6b37b5ec317810ba8fa4c1ce53::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'F' =>
|
@@ -33,8 +33,8 @@ class ComposerStaticInit7ad5ca3108198187a4bc78a54a6f83c4
|
|
33 |
public static function getInitializer(ClassLoader $loader)
|
34 |
{
|
35 |
return \Closure::bind(function () use ($loader) {
|
36 |
-
$loader->prefixLengthsPsr4 =
|
37 |
-
$loader->prefixDirsPsr4 =
|
38 |
|
39 |
}, null, ClassLoader::class);
|
40 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit48c7cb6b37b5ec317810ba8fa4c1ce53
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'F' =>
|
33 |
public static function getInitializer(ClassLoader $loader)
|
34 |
{
|
35 |
return \Closure::bind(function () use ($loader) {
|
36 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit48c7cb6b37b5ec317810ba8fa4c1ce53::$prefixLengthsPsr4;
|
37 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit48c7cb6b37b5ec317810ba8fa4c1ce53::$prefixDirsPsr4;
|
38 |
|
39 |
}, null, ClassLoader::class);
|
40 |
}
|