Version Description
Download this release
Release Info
Developer | |
Plugin | Official Facebook Pixel |
Version | 1.7.23 |
Comparing to | |
See all releases |
Code changes from version 1.7.22 to 1.7.23
- changelog.txt +5 -0
- composer.json +23 -23
- composer.lock +284 -19
- core/FacebookPixel.php +19 -19
- core/FacebookPluginConfig.php +14 -11
- core/FacebookPluginUtils.php +18 -12
- facebook-for-wordpress.php +1 -1
- integration/FacebookWordpressCalderaForm.php +53 -0
- integration/FacebookWordpressContactForm7.php +13 -23
- integration/FacebookWordpressEasyDigitalDownloads.php +16 -25
- integration/FacebookWordpressFormidableForm.php +57 -0
- integration/FacebookWordpressGravityForms.php +59 -0
- integration/FacebookWordpressIntegrationBase.php +21 -12
- integration/FacebookWordpressMailchimpForWp.php +3 -12
- integration/FacebookWordpressNinjaForms.php +12 -12
- integration/FacebookWordpressWPECommerce.php +49 -82
- integration/FacebookWordpressWPForms.php +12 -12
- languages/official-facebook-pixel-ar_AR.mo +0 -0
- languages/official-facebook-pixel-ar_AR.po +1 -1
- languages/official-facebook-pixel-cs_CZ.mo +0 -0
- languages/official-facebook-pixel-cs_CZ.po +1 -1
- languages/official-facebook-pixel-da_DK.mo +0 -0
- languages/official-facebook-pixel-da_DK.po +1 -1
- languages/official-facebook-pixel-de_DE.mo +0 -0
- languages/official-facebook-pixel-de_DE.po +1 -1
- languages/official-facebook-pixel-en_GB.mo +0 -0
- languages/official-facebook-pixel-en_GB.po +1 -1
- languages/official-facebook-pixel-es_ES.mo +0 -0
- languages/official-facebook-pixel-es_ES.po +1 -1
- languages/official-facebook-pixel-es_LA.mo +0 -0
- languages/official-facebook-pixel-es_LA.po +1 -1
- languages/official-facebook-pixel-fi_FI.mo +0 -0
- languages/official-facebook-pixel-fi_FI.po +1 -1
- languages/official-facebook-pixel-fr_CA.mo +0 -0
- languages/official-facebook-pixel-fr_CA.po +1 -1
- languages/official-facebook-pixel-fr_FR.mo +0 -0
- languages/official-facebook-pixel-fr_FR.po +1 -1
- languages/official-facebook-pixel-he_IL.mo +0 -0
- languages/official-facebook-pixel-he_IL.po +1 -1
- languages/official-facebook-pixel-it_IT.mo +0 -0
- languages/official-facebook-pixel-it_IT.po +1 -1
- languages/official-facebook-pixel-ja_JP.mo +0 -0
- languages/official-facebook-pixel-ja_JP.po +1 -1
- languages/official-facebook-pixel-ko_KR.mo +0 -0
- languages/official-facebook-pixel-ko_KR.po +1 -1
- languages/official-facebook-pixel-nb_NO.mo +0 -0
- languages/official-facebook-pixel-nb_NO.po +1 -1
- languages/official-facebook-pixel-nl_NL.mo +0 -0
- languages/official-facebook-pixel-nl_NL.po +1 -1
- languages/official-facebook-pixel-pl_PL.mo +0 -0
- languages/official-facebook-pixel-pl_PL.po +1 -1
- languages/official-facebook-pixel-pt_BR.mo +0 -0
- languages/official-facebook-pixel-pt_BR.po +1 -1
- languages/official-facebook-pixel-pt_PT.mo +0 -0
- languages/official-facebook-pixel-pt_PT.po +1 -1
- languages/official-facebook-pixel-ru_RU.mo +0 -0
- languages/official-facebook-pixel-ru_RU.po +1 -1
- languages/official-facebook-pixel-sv_SE.mo +0 -0
- languages/official-facebook-pixel-sv_SE.po +1 -1
- languages/official-facebook-pixel-th_TH.mo +0 -0
- languages/official-facebook-pixel-th_TH.po +1 -1
- languages/official-facebook-pixel-tr_TR.mo +0 -0
- languages/official-facebook-pixel-tr_TR.po +1 -1
- languages/official-facebook-pixel-vi_VN.mo +0 -0
- languages/official-facebook-pixel-vi_VN.po +1 -1
- languages/official-facebook-pixel-zh_CN.mo +0 -0
- languages/official-facebook-pixel-zh_CN.po +1 -1
- languages/official-facebook-pixel-zh_TW.mo +0 -0
- languages/official-facebook-pixel-zh_TW.po +1 -1
- languages/official-facebook-pixel.pot +1 -1
- readme.txt +6 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +3 -3
changelog.txt
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
*** Facebook for WordPress Changelog ***
|
|
|
|
|
|
|
|
|
|
|
2 |
2019-01-20 version 1.7.22
|
3 |
* fix css asset error
|
4 |
|
1 |
*** Facebook for WordPress Changelog ***
|
2 |
+
2019-01-29 version 1.7.23
|
3 |
+
* Add Gravity Forms
|
4 |
+
* Add Caldera Form
|
5 |
+
* Add Formidable Form
|
6 |
+
|
7 |
2019-01-20 version 1.7.22
|
8 |
* fix css asset error
|
9 |
|
composer.json
CHANGED
@@ -1,25 +1,25 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
}
|
18 |
-
},
|
19 |
-
"autoload-dev": {
|
20 |
-
"classmap": [
|
21 |
-
"tests/",
|
22 |
-
"./"
|
23 |
-
]
|
24 |
}
|
25 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
{
|
2 |
+
"name": "facebook/pixel-for-wordpress",
|
3 |
+
"description": "Facebook Pixel plugins for wordpress",
|
4 |
+
"type": "project",
|
5 |
+
"require-dev": {
|
6 |
+
"phpunit/phpunit": "^6.5",
|
7 |
+
"phing/phing": "3.0.0-alpha1",
|
8 |
+
"10up/wp_mock": "0.3.0"
|
9 |
+
},
|
10 |
+
"license": "GPL",
|
11 |
+
"require": {},
|
12 |
+
"autoload": {
|
13 |
+
"psr-4": {
|
14 |
+
"FacebookPixelPlugin\\": "./",
|
15 |
+
"FacebookPixelPlugin\\Core\\": "core/",
|
16 |
+
"FacebookPixelPlugin\\Integration\\": "integration/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|
18 |
+
},
|
19 |
+
"autoload-dev": {
|
20 |
+
"classmap": [
|
21 |
+
"__tests__/",
|
22 |
+
"./"
|
23 |
+
]
|
24 |
+
}
|
25 |
+
}
|
composer.lock
CHANGED
@@ -4,9 +4,91 @@
|
|
4 |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
-
"content-hash": "
|
8 |
"packages": [],
|
9 |
"packages-dev": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
{
|
11 |
"name": "doctrine/instantiator",
|
12 |
"version": "1.1.0",
|
@@ -61,6 +143,54 @@
|
|
61 |
],
|
62 |
"time": "2017-07-22T11:58:36+00:00"
|
63 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
{
|
65 |
"name": "mehr-als-nix/parallel",
|
66 |
"version": "v1.0.0",
|
@@ -97,6 +227,71 @@
|
|
97 |
"description": "This package is a port of PhpDumentor/Parallel",
|
98 |
"time": "2017-12-10T12:33:51+00:00"
|
99 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
{
|
101 |
"name": "myclabs/deep-copy",
|
102 |
"version": "1.8.1",
|
@@ -1512,20 +1707,21 @@
|
|
1512 |
},
|
1513 |
{
|
1514 |
"name": "symfony/console",
|
1515 |
-
"version": "v4.
|
1516 |
"source": {
|
1517 |
"type": "git",
|
1518 |
"url": "https://github.com/symfony/console.git",
|
1519 |
-
"reference": "
|
1520 |
},
|
1521 |
"dist": {
|
1522 |
"type": "zip",
|
1523 |
-
"url": "https://api.github.com/repos/symfony/console/zipball/
|
1524 |
-
"reference": "
|
1525 |
"shasum": ""
|
1526 |
},
|
1527 |
"require": {
|
1528 |
"php": "^7.1.3",
|
|
|
1529 |
"symfony/polyfill-mbstring": "~1.0"
|
1530 |
},
|
1531 |
"conflict": {
|
@@ -1549,7 +1745,7 @@
|
|
1549 |
"type": "library",
|
1550 |
"extra": {
|
1551 |
"branch-alias": {
|
1552 |
-
"dev-master": "4.
|
1553 |
}
|
1554 |
},
|
1555 |
"autoload": {
|
@@ -1576,7 +1772,75 @@
|
|
1576 |
],
|
1577 |
"description": "Symfony Console Component",
|
1578 |
"homepage": "https://symfony.com",
|
1579 |
-
"time": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1580 |
},
|
1581 |
{
|
1582 |
"name": "symfony/polyfill-ctype",
|
@@ -1697,16 +1961,16 @@
|
|
1697 |
},
|
1698 |
{
|
1699 |
"name": "symfony/yaml",
|
1700 |
-
"version": "v4.
|
1701 |
"source": {
|
1702 |
"type": "git",
|
1703 |
"url": "https://github.com/symfony/yaml.git",
|
1704 |
-
"reference": "
|
1705 |
},
|
1706 |
"dist": {
|
1707 |
"type": "zip",
|
1708 |
-
"url": "https://api.github.com/repos/symfony/yaml/zipball/
|
1709 |
-
"reference": "
|
1710 |
"shasum": ""
|
1711 |
},
|
1712 |
"require": {
|
@@ -1725,7 +1989,7 @@
|
|
1725 |
"type": "library",
|
1726 |
"extra": {
|
1727 |
"branch-alias": {
|
1728 |
-
"dev-master": "4.
|
1729 |
}
|
1730 |
},
|
1731 |
"autoload": {
|
@@ -1752,7 +2016,7 @@
|
|
1752 |
],
|
1753 |
"description": "Symfony Yaml Component",
|
1754 |
"homepage": "https://symfony.com",
|
1755 |
-
"time": "
|
1756 |
},
|
1757 |
{
|
1758 |
"name": "theseer/tokenizer",
|
@@ -1796,20 +2060,21 @@
|
|
1796 |
},
|
1797 |
{
|
1798 |
"name": "webmozart/assert",
|
1799 |
-
"version": "1.
|
1800 |
"source": {
|
1801 |
"type": "git",
|
1802 |
"url": "https://github.com/webmozart/assert.git",
|
1803 |
-
"reference": "
|
1804 |
},
|
1805 |
"dist": {
|
1806 |
"type": "zip",
|
1807 |
-
"url": "https://api.github.com/repos/webmozart/assert/zipball/
|
1808 |
-
"reference": "
|
1809 |
"shasum": ""
|
1810 |
},
|
1811 |
"require": {
|
1812 |
-
"php": "^5.3.3 || ^7.0"
|
|
|
1813 |
},
|
1814 |
"require-dev": {
|
1815 |
"phpunit/phpunit": "^4.6",
|
@@ -1842,7 +2107,7 @@
|
|
1842 |
"check",
|
1843 |
"validate"
|
1844 |
],
|
1845 |
-
"time": "2018-
|
1846 |
}
|
1847 |
],
|
1848 |
"aliases": [],
|
4 |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
+
"content-hash": "066d32789b4468f6c87f31956cc2f876",
|
8 |
"packages": [],
|
9 |
"packages-dev": [
|
10 |
+
{
|
11 |
+
"name": "10up/wp_mock",
|
12 |
+
"version": "0.3.0",
|
13 |
+
"source": {
|
14 |
+
"type": "git",
|
15 |
+
"url": "https://github.com/10up/wp_mock.git",
|
16 |
+
"reference": "64956557e98ee4c8c56cd1e396e822adb4673714"
|
17 |
+
},
|
18 |
+
"dist": {
|
19 |
+
"type": "zip",
|
20 |
+
"url": "https://api.github.com/repos/10up/wp_mock/zipball/64956557e98ee4c8c56cd1e396e822adb4673714",
|
21 |
+
"reference": "64956557e98ee4c8c56cd1e396e822adb4673714",
|
22 |
+
"shasum": ""
|
23 |
+
},
|
24 |
+
"require": {
|
25 |
+
"antecedent/patchwork": "^2.1",
|
26 |
+
"mockery/mockery": "^1.0",
|
27 |
+
"php": ">=7.0",
|
28 |
+
"phpunit/phpunit": ">=6.0"
|
29 |
+
},
|
30 |
+
"require-dev": {
|
31 |
+
"behat/behat": "^3.0",
|
32 |
+
"satooshi/php-coveralls": "^1.0",
|
33 |
+
"sebastian/comparator": ">=1.2.3"
|
34 |
+
},
|
35 |
+
"type": "library",
|
36 |
+
"autoload": {
|
37 |
+
"psr-4": {
|
38 |
+
"WP_Mock\\": "./php/WP_Mock"
|
39 |
+
},
|
40 |
+
"classmap": [
|
41 |
+
"php/WP_Mock.php"
|
42 |
+
]
|
43 |
+
},
|
44 |
+
"notification-url": "https://packagist.org/downloads/",
|
45 |
+
"license": [
|
46 |
+
"GPL-2.0+"
|
47 |
+
],
|
48 |
+
"description": "A mocking library to take the pain out of unit testing for WordPress",
|
49 |
+
"time": "2017-12-03T19:28:28+00:00"
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"name": "antecedent/patchwork",
|
53 |
+
"version": "2.1.8",
|
54 |
+
"source": {
|
55 |
+
"type": "git",
|
56 |
+
"url": "https://github.com/antecedent/patchwork.git",
|
57 |
+
"reference": "3bb81ace3914c220aa273d1c0603d5e1b454c0d7"
|
58 |
+
},
|
59 |
+
"dist": {
|
60 |
+
"type": "zip",
|
61 |
+
"url": "https://api.github.com/repos/antecedent/patchwork/zipball/3bb81ace3914c220aa273d1c0603d5e1b454c0d7",
|
62 |
+
"reference": "3bb81ace3914c220aa273d1c0603d5e1b454c0d7",
|
63 |
+
"shasum": ""
|
64 |
+
},
|
65 |
+
"require": {
|
66 |
+
"php": ">=5.4.0"
|
67 |
+
},
|
68 |
+
"type": "library",
|
69 |
+
"notification-url": "https://packagist.org/downloads/",
|
70 |
+
"license": [
|
71 |
+
"MIT"
|
72 |
+
],
|
73 |
+
"authors": [
|
74 |
+
{
|
75 |
+
"name": "Ignas Rudaitis",
|
76 |
+
"email": "ignas.rudaitis@gmail.com"
|
77 |
+
}
|
78 |
+
],
|
79 |
+
"description": "Method redefinition (monkey-patching) functionality for PHP.",
|
80 |
+
"homepage": "http://patchwork2.org/",
|
81 |
+
"keywords": [
|
82 |
+
"aop",
|
83 |
+
"aspect",
|
84 |
+
"interception",
|
85 |
+
"monkeypatching",
|
86 |
+
"redefinition",
|
87 |
+
"runkit",
|
88 |
+
"testing"
|
89 |
+
],
|
90 |
+
"time": "2018-02-19T18:52:50+00:00"
|
91 |
+
},
|
92 |
{
|
93 |
"name": "doctrine/instantiator",
|
94 |
"version": "1.1.0",
|
143 |
],
|
144 |
"time": "2017-07-22T11:58:36+00:00"
|
145 |
},
|
146 |
+
{
|
147 |
+
"name": "hamcrest/hamcrest-php",
|
148 |
+
"version": "v2.0.0",
|
149 |
+
"source": {
|
150 |
+
"type": "git",
|
151 |
+
"url": "https://github.com/hamcrest/hamcrest-php.git",
|
152 |
+
"reference": "776503d3a8e85d4f9a1148614f95b7a608b046ad"
|
153 |
+
},
|
154 |
+
"dist": {
|
155 |
+
"type": "zip",
|
156 |
+
"url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/776503d3a8e85d4f9a1148614f95b7a608b046ad",
|
157 |
+
"reference": "776503d3a8e85d4f9a1148614f95b7a608b046ad",
|
158 |
+
"shasum": ""
|
159 |
+
},
|
160 |
+
"require": {
|
161 |
+
"php": "^5.3|^7.0"
|
162 |
+
},
|
163 |
+
"replace": {
|
164 |
+
"cordoval/hamcrest-php": "*",
|
165 |
+
"davedevelopment/hamcrest-php": "*",
|
166 |
+
"kodova/hamcrest-php": "*"
|
167 |
+
},
|
168 |
+
"require-dev": {
|
169 |
+
"phpunit/php-file-iterator": "1.3.3",
|
170 |
+
"phpunit/phpunit": "~4.0",
|
171 |
+
"satooshi/php-coveralls": "^1.0"
|
172 |
+
},
|
173 |
+
"type": "library",
|
174 |
+
"extra": {
|
175 |
+
"branch-alias": {
|
176 |
+
"dev-master": "2.0-dev"
|
177 |
+
}
|
178 |
+
},
|
179 |
+
"autoload": {
|
180 |
+
"classmap": [
|
181 |
+
"hamcrest"
|
182 |
+
]
|
183 |
+
},
|
184 |
+
"notification-url": "https://packagist.org/downloads/",
|
185 |
+
"license": [
|
186 |
+
"BSD"
|
187 |
+
],
|
188 |
+
"description": "This is the PHP port of Hamcrest Matchers",
|
189 |
+
"keywords": [
|
190 |
+
"test"
|
191 |
+
],
|
192 |
+
"time": "2016-01-20T08:20:44+00:00"
|
193 |
+
},
|
194 |
{
|
195 |
"name": "mehr-als-nix/parallel",
|
196 |
"version": "v1.0.0",
|
227 |
"description": "This package is a port of PhpDumentor/Parallel",
|
228 |
"time": "2017-12-10T12:33:51+00:00"
|
229 |
},
|
230 |
+
{
|
231 |
+
"name": "mockery/mockery",
|
232 |
+
"version": "1.2.0",
|
233 |
+
"source": {
|
234 |
+
"type": "git",
|
235 |
+
"url": "https://github.com/mockery/mockery.git",
|
236 |
+
"reference": "100633629bf76d57430b86b7098cd6beb996a35a"
|
237 |
+
},
|
238 |
+
"dist": {
|
239 |
+
"type": "zip",
|
240 |
+
"url": "https://api.github.com/repos/mockery/mockery/zipball/100633629bf76d57430b86b7098cd6beb996a35a",
|
241 |
+
"reference": "100633629bf76d57430b86b7098cd6beb996a35a",
|
242 |
+
"shasum": ""
|
243 |
+
},
|
244 |
+
"require": {
|
245 |
+
"hamcrest/hamcrest-php": "~2.0",
|
246 |
+
"lib-pcre": ">=7.0",
|
247 |
+
"php": ">=5.6.0"
|
248 |
+
},
|
249 |
+
"require-dev": {
|
250 |
+
"phpunit/phpunit": "~5.7.10|~6.5|~7.0"
|
251 |
+
},
|
252 |
+
"type": "library",
|
253 |
+
"extra": {
|
254 |
+
"branch-alias": {
|
255 |
+
"dev-master": "1.0.x-dev"
|
256 |
+
}
|
257 |
+
},
|
258 |
+
"autoload": {
|
259 |
+
"psr-0": {
|
260 |
+
"Mockery": "library/"
|
261 |
+
}
|
262 |
+
},
|
263 |
+
"notification-url": "https://packagist.org/downloads/",
|
264 |
+
"license": [
|
265 |
+
"BSD-3-Clause"
|
266 |
+
],
|
267 |
+
"authors": [
|
268 |
+
{
|
269 |
+
"name": "Pádraic Brady",
|
270 |
+
"email": "padraic.brady@gmail.com",
|
271 |
+
"homepage": "http://blog.astrumfutura.com"
|
272 |
+
},
|
273 |
+
{
|
274 |
+
"name": "Dave Marshall",
|
275 |
+
"email": "dave.marshall@atstsolutions.co.uk",
|
276 |
+
"homepage": "http://davedevelopment.co.uk"
|
277 |
+
}
|
278 |
+
],
|
279 |
+
"description": "Mockery is a simple yet flexible PHP mock object framework",
|
280 |
+
"homepage": "https://github.com/mockery/mockery",
|
281 |
+
"keywords": [
|
282 |
+
"BDD",
|
283 |
+
"TDD",
|
284 |
+
"library",
|
285 |
+
"mock",
|
286 |
+
"mock objects",
|
287 |
+
"mockery",
|
288 |
+
"stub",
|
289 |
+
"test",
|
290 |
+
"test double",
|
291 |
+
"testing"
|
292 |
+
],
|
293 |
+
"time": "2018-10-02T21:52:37+00:00"
|
294 |
+
},
|
295 |
{
|
296 |
"name": "myclabs/deep-copy",
|
297 |
"version": "1.8.1",
|
1707 |
},
|
1708 |
{
|
1709 |
"name": "symfony/console",
|
1710 |
+
"version": "v4.2.2",
|
1711 |
"source": {
|
1712 |
"type": "git",
|
1713 |
"url": "https://github.com/symfony/console.git",
|
1714 |
+
"reference": "b0a03c1bb0fcbe288629956cf2f1dd3f1dc97522"
|
1715 |
},
|
1716 |
"dist": {
|
1717 |
"type": "zip",
|
1718 |
+
"url": "https://api.github.com/repos/symfony/console/zipball/b0a03c1bb0fcbe288629956cf2f1dd3f1dc97522",
|
1719 |
+
"reference": "b0a03c1bb0fcbe288629956cf2f1dd3f1dc97522",
|
1720 |
"shasum": ""
|
1721 |
},
|
1722 |
"require": {
|
1723 |
"php": "^7.1.3",
|
1724 |
+
"symfony/contracts": "^1.0",
|
1725 |
"symfony/polyfill-mbstring": "~1.0"
|
1726 |
},
|
1727 |
"conflict": {
|
1745 |
"type": "library",
|
1746 |
"extra": {
|
1747 |
"branch-alias": {
|
1748 |
+
"dev-master": "4.2-dev"
|
1749 |
}
|
1750 |
},
|
1751 |
"autoload": {
|
1772 |
],
|
1773 |
"description": "Symfony Console Component",
|
1774 |
"homepage": "https://symfony.com",
|
1775 |
+
"time": "2019-01-04T15:13:53+00:00"
|
1776 |
+
},
|
1777 |
+
{
|
1778 |
+
"name": "symfony/contracts",
|
1779 |
+
"version": "v1.0.2",
|
1780 |
+
"source": {
|
1781 |
+
"type": "git",
|
1782 |
+
"url": "https://github.com/symfony/contracts.git",
|
1783 |
+
"reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf"
|
1784 |
+
},
|
1785 |
+
"dist": {
|
1786 |
+
"type": "zip",
|
1787 |
+
"url": "https://api.github.com/repos/symfony/contracts/zipball/1aa7ab2429c3d594dd70689604b5cf7421254cdf",
|
1788 |
+
"reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf",
|
1789 |
+
"shasum": ""
|
1790 |
+
},
|
1791 |
+
"require": {
|
1792 |
+
"php": "^7.1.3"
|
1793 |
+
},
|
1794 |
+
"require-dev": {
|
1795 |
+
"psr/cache": "^1.0",
|
1796 |
+
"psr/container": "^1.0"
|
1797 |
+
},
|
1798 |
+
"suggest": {
|
1799 |
+
"psr/cache": "When using the Cache contracts",
|
1800 |
+
"psr/container": "When using the Service contracts",
|
1801 |
+
"symfony/cache-contracts-implementation": "",
|
1802 |
+
"symfony/service-contracts-implementation": "",
|
1803 |
+
"symfony/translation-contracts-implementation": ""
|
1804 |
+
},
|
1805 |
+
"type": "library",
|
1806 |
+
"extra": {
|
1807 |
+
"branch-alias": {
|
1808 |
+
"dev-master": "1.0-dev"
|
1809 |
+
}
|
1810 |
+
},
|
1811 |
+
"autoload": {
|
1812 |
+
"psr-4": {
|
1813 |
+
"Symfony\\Contracts\\": ""
|
1814 |
+
},
|
1815 |
+
"exclude-from-classmap": [
|
1816 |
+
"**/Tests/"
|
1817 |
+
]
|
1818 |
+
},
|
1819 |
+
"notification-url": "https://packagist.org/downloads/",
|
1820 |
+
"license": [
|
1821 |
+
"MIT"
|
1822 |
+
],
|
1823 |
+
"authors": [
|
1824 |
+
{
|
1825 |
+
"name": "Nicolas Grekas",
|
1826 |
+
"email": "p@tchwork.com"
|
1827 |
+
},
|
1828 |
+
{
|
1829 |
+
"name": "Symfony Community",
|
1830 |
+
"homepage": "https://symfony.com/contributors"
|
1831 |
+
}
|
1832 |
+
],
|
1833 |
+
"description": "A set of abstractions extracted out of the Symfony components",
|
1834 |
+
"homepage": "https://symfony.com",
|
1835 |
+
"keywords": [
|
1836 |
+
"abstractions",
|
1837 |
+
"contracts",
|
1838 |
+
"decoupling",
|
1839 |
+
"interfaces",
|
1840 |
+
"interoperability",
|
1841 |
+
"standards"
|
1842 |
+
],
|
1843 |
+
"time": "2018-12-05T08:06:11+00:00"
|
1844 |
},
|
1845 |
{
|
1846 |
"name": "symfony/polyfill-ctype",
|
1961 |
},
|
1962 |
{
|
1963 |
"name": "symfony/yaml",
|
1964 |
+
"version": "v4.2.2",
|
1965 |
"source": {
|
1966 |
"type": "git",
|
1967 |
"url": "https://github.com/symfony/yaml.git",
|
1968 |
+
"reference": "d0aa6c0ea484087927b49fd513383a7d36190ca6"
|
1969 |
},
|
1970 |
"dist": {
|
1971 |
"type": "zip",
|
1972 |
+
"url": "https://api.github.com/repos/symfony/yaml/zipball/d0aa6c0ea484087927b49fd513383a7d36190ca6",
|
1973 |
+
"reference": "d0aa6c0ea484087927b49fd513383a7d36190ca6",
|
1974 |
"shasum": ""
|
1975 |
},
|
1976 |
"require": {
|
1989 |
"type": "library",
|
1990 |
"extra": {
|
1991 |
"branch-alias": {
|
1992 |
+
"dev-master": "4.2-dev"
|
1993 |
}
|
1994 |
},
|
1995 |
"autoload": {
|
2016 |
],
|
2017 |
"description": "Symfony Yaml Component",
|
2018 |
"homepage": "https://symfony.com",
|
2019 |
+
"time": "2019-01-03T09:07:35+00:00"
|
2020 |
},
|
2021 |
{
|
2022 |
"name": "theseer/tokenizer",
|
2060 |
},
|
2061 |
{
|
2062 |
"name": "webmozart/assert",
|
2063 |
+
"version": "1.4.0",
|
2064 |
"source": {
|
2065 |
"type": "git",
|
2066 |
"url": "https://github.com/webmozart/assert.git",
|
2067 |
+
"reference": "83e253c8e0be5b0257b881e1827274667c5c17a9"
|
2068 |
},
|
2069 |
"dist": {
|
2070 |
"type": "zip",
|
2071 |
+
"url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9",
|
2072 |
+
"reference": "83e253c8e0be5b0257b881e1827274667c5c17a9",
|
2073 |
"shasum": ""
|
2074 |
},
|
2075 |
"require": {
|
2076 |
+
"php": "^5.3.3 || ^7.0",
|
2077 |
+
"symfony/polyfill-ctype": "^1.8"
|
2078 |
},
|
2079 |
"require-dev": {
|
2080 |
"phpunit/phpunit": "^4.6",
|
2107 |
"check",
|
2108 |
"validate"
|
2109 |
],
|
2110 |
+
"time": "2018-12-25T11:19:39+00:00"
|
2111 |
}
|
2112 |
],
|
2113 |
"aliases": [],
|
core/FacebookPixel.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
@@ -104,8 +104,8 @@ src=\"https://www.facebook.com/tr?id=%s&ev=%s%s&noscript=1\" />
|
|
104 |
}
|
105 |
|
106 |
$code = $with_script_tag
|
107 |
-
|
108 |
-
|
109 |
$param_str = $param;
|
110 |
if (is_array($param)) {
|
111 |
$param_str = json_encode($param, JSON_PRETTY_PRINT);
|
@@ -115,8 +115,8 @@ src=\"https://www.facebook.com/tr?id=%s&ev=%s%s&noscript=1\" />
|
|
115 |
$code,
|
116 |
'init',
|
117 |
self::$pixelId,
|
118 |
-
', '
|
119 |
-
', '.json_encode($agent_param, JSON_PRETTY_PRINT));
|
120 |
}
|
121 |
|
122 |
/**
|
@@ -132,8 +132,8 @@ src=\"https://www.facebook.com/tr?id=%s&ev=%s%s&noscript=1\" />
|
|
132 |
}
|
133 |
|
134 |
$code = $with_script_tag
|
135 |
-
|
136 |
-
|
137 |
$param_str = $param;
|
138 |
if (is_array($param)) {
|
139 |
if (!empty($tracking_name)) {
|
@@ -146,7 +146,7 @@ src=\"https://www.facebook.com/tr?id=%s&ev=%s%s&noscript=1\" />
|
|
146 |
$code,
|
147 |
$class->getConstant(strtoupper($event)) !== false ? 'track' : 'trackCustom',
|
148 |
$event,
|
149 |
-
', '
|
150 |
'');
|
151 |
}
|
152 |
|
@@ -160,10 +160,10 @@ src=\"https://www.facebook.com/tr?id=%s&ev=%s%s&noscript=1\" />
|
|
160 |
|
161 |
$data = '';
|
162 |
foreach ($cd as $k => $v) {
|
163 |
-
$data .= '&cd['
|
164 |
}
|
165 |
if (!empty($tracking_name)) {
|
166 |
-
$data .= '&cd['.self::FB_INTEGRATION_TRACKING_KEY.']='
|
167 |
}
|
168 |
return sprintf(
|
169 |
self::$pixelNoscriptCode,
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
+
*
|
5 |
+
* This program is free software; you can redistribute it and/or modify
|
6 |
+
* it under the terms of the GNU General Public License as published by
|
7 |
+
* the Free Software Foundation; version 2 of the License.
|
8 |
+
* This program is distributed in the hope that it will be useful,
|
9 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
+
* GNU General Public License for more details.
|
12 |
+
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
104 |
}
|
105 |
|
106 |
$code = $with_script_tag
|
107 |
+
? "<script type='text/javascript'>" . self::$pixelFbqCodeWithoutScript . "</script>"
|
108 |
+
: self::$pixelFbqCodeWithoutScript;
|
109 |
$param_str = $param;
|
110 |
if (is_array($param)) {
|
111 |
$param_str = json_encode($param, JSON_PRETTY_PRINT);
|
115 |
$code,
|
116 |
'init',
|
117 |
self::$pixelId,
|
118 |
+
', ' . $param_str,
|
119 |
+
', ' . json_encode($agent_param, JSON_PRETTY_PRINT));
|
120 |
}
|
121 |
|
122 |
/**
|
132 |
}
|
133 |
|
134 |
$code = $with_script_tag
|
135 |
+
? "<script type='text/javascript'>" . self::$pixelFbqCodeWithoutScript . "</script>"
|
136 |
+
: self::$pixelFbqCodeWithoutScript;
|
137 |
$param_str = $param;
|
138 |
if (is_array($param)) {
|
139 |
if (!empty($tracking_name)) {
|
146 |
$code,
|
147 |
$class->getConstant(strtoupper($event)) !== false ? 'track' : 'trackCustom',
|
148 |
$event,
|
149 |
+
', ' . $param_str,
|
150 |
'');
|
151 |
}
|
152 |
|
160 |
|
161 |
$data = '';
|
162 |
foreach ($cd as $k => $v) {
|
163 |
+
$data .= '&cd[' . $k . ']=' . $v;
|
164 |
}
|
165 |
if (!empty($tracking_name)) {
|
166 |
+
$data .= '&cd[' . self::FB_INTEGRATION_TRACKING_KEY . ']=' . $tracking_name;
|
167 |
}
|
168 |
return sprintf(
|
169 |
self::$pixelNoscriptCode,
|
core/FacebookPluginConfig.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
@@ -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.7.
|
24 |
const SOURCE = 'wordpress';
|
25 |
const TEXT_DOMAIN = 'official-facebook-pixel';
|
26 |
|
@@ -46,8 +46,11 @@ class FacebookPluginConfig {
|
|
46 |
// integration config: INTEGRATION_KEY => PLUGIN_CLASS
|
47 |
public static function integrationConfig() {
|
48 |
return array(
|
|
|
49 |
'CONTACT_FORM_7' => 'FacebookWordpressContactForm7',
|
50 |
'EASY_DIGITAL_DOWNLOAD' => 'FacebookWordpressEasyDigitalDownloads',
|
|
|
|
|
51 |
'MAILCHIMP_FOR_WP' => 'FacebookWordpressMailchimpForWp',
|
52 |
'NINJA_FORMS' => 'FacebookWordpressNinjaForms',
|
53 |
'WPFORMS' => 'FacebookWordpressWPForms',
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
+
*
|
5 |
+
* This program is free software; you can redistribute it and/or modify
|
6 |
+
* it under the terms of the GNU General Public License as published by
|
7 |
+
* the Free Software Foundation; version 2 of the License.
|
8 |
+
* This program is distributed in the hope that it will be useful,
|
9 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
+
* GNU General Public License for more details.
|
12 |
+
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
class FacebookPluginConfig {
|
23 |
+
const PLUGIN_VERSION = '1.7.23';
|
24 |
const SOURCE = 'wordpress';
|
25 |
const TEXT_DOMAIN = 'official-facebook-pixel';
|
26 |
|
46 |
// integration config: INTEGRATION_KEY => PLUGIN_CLASS
|
47 |
public static function integrationConfig() {
|
48 |
return array(
|
49 |
+
'CALDERA_FORM' => 'FacebookWordpressCalderaForm',
|
50 |
'CONTACT_FORM_7' => 'FacebookWordpressContactForm7',
|
51 |
'EASY_DIGITAL_DOWNLOAD' => 'FacebookWordpressEasyDigitalDownloads',
|
52 |
+
'FORMIDABLE_FORM' => 'FacebookWordpressFormidableForm',
|
53 |
+
'GRAVITY_FORMS' => 'FacebookWordpressGravityForms',
|
54 |
'MAILCHIMP_FOR_WP' => 'FacebookWordpressMailchimpForWp',
|
55 |
'NINJA_FORMS' => 'FacebookWordpressNinjaForms',
|
56 |
'WPFORMS' => 'FacebookWordpressWPForms',
|
core/FacebookPluginUtils.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
@@ -31,7 +31,13 @@ class FacebookPluginUtils {
|
|
31 |
* @return bool
|
32 |
*/
|
33 |
public static function isPositiveInteger($pixel_id) {
|
34 |
-
return isset($pixel_id) && is_numeric($pixel_id) && (int)$pixel_id > 0;
|
35 |
}
|
36 |
-
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
+
*
|
5 |
+
* This program is free software; you can redistribute it and/or modify
|
6 |
+
* it under the terms of the GNU General Public License as published by
|
7 |
+
* the Free Software Foundation; version 2 of the License.
|
8 |
+
* This program is distributed in the hope that it will be useful,
|
9 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
+
* GNU General Public License for more details.
|
12 |
+
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
31 |
* @return bool
|
32 |
*/
|
33 |
public static function isPositiveInteger($pixel_id) {
|
34 |
+
return isset($pixel_id) && is_numeric($pixel_id) && (int) $pixel_id > 0;
|
35 |
}
|
|
|
36 |
|
37 |
+
/**
|
38 |
+
* Whether current user is Administrator.
|
39 |
+
*/
|
40 |
+
public static function isAdmin() {
|
41 |
+
return current_user_can('install_plugins');
|
42 |
+
}
|
43 |
+
}
|
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.7.
|
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.7.23
|
9 |
* Text Domain: official-facebook-pixel
|
10 |
*/
|
11 |
|
integration/FacebookWordpressCalderaForm.php
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
+
*
|
5 |
+
* This program is free software; you can redistribute it and/or modify
|
6 |
+
* it under the terms of the GNU General Public License as published by
|
7 |
+
* the Free Software Foundation; version 2 of the License.
|
8 |
+
* This program is distributed in the hope that it will be useful,
|
9 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
+
* GNU General Public License for more details.
|
12 |
+
*/
|
13 |
+
|
14 |
+
/**
|
15 |
+
* @package FacebookPixelPlugin
|
16 |
+
*/
|
17 |
+
|
18 |
+
namespace FacebookPixelPlugin\Integration;
|
19 |
+
|
20 |
+
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
+
|
22 |
+
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
+
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
+
|
25 |
+
class FacebookWordpressCalderaForm extends FacebookWordpressIntegrationBase {
|
26 |
+
const PLUGIN_FILE = 'caldera-forms/caldera-core.php';
|
27 |
+
const TRACKING_NAME = 'caldera-forms';
|
28 |
+
|
29 |
+
public static function injectPixelCode() {
|
30 |
+
add_action(
|
31 |
+
'caldera_forms_ajax_return',
|
32 |
+
array(__CLASS__, 'injectLeadEvent'),
|
33 |
+
10, 2);
|
34 |
+
}
|
35 |
+
|
36 |
+
public static function injectLeadEvent($out, $form) {
|
37 |
+
if (FacebookPluginUtils::isAdmin() || $out['status'] !== 'complete') {
|
38 |
+
return $out;
|
39 |
+
}
|
40 |
+
|
41 |
+
$param = array();
|
42 |
+
$code = FacebookPixel::getPixelLeadCode($param, self::TRACKING_NAME, true);
|
43 |
+
$code = sprintf("
|
44 |
+
<!-- Facebook Pixel Event Code -->
|
45 |
+
%s
|
46 |
+
<!-- End Facebook Pixel Event Code -->
|
47 |
+
",
|
48 |
+
$code);
|
49 |
+
|
50 |
+
$out['html'] .= $code;
|
51 |
+
return $out;
|
52 |
+
}
|
53 |
+
}
|
integration/FacebookWordpressContactForm7.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
@@ -20,28 +20,18 @@ namespace FacebookPixelPlugin\Integration;
|
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
-
use FacebookPixelPlugin\Core\
|
24 |
|
25 |
class FacebookWordpressContactForm7 extends FacebookWordpressIntegrationBase {
|
26 |
const PLUGIN_FILE = 'contact-form-7/wp-contact-form-7.php';
|
27 |
const TRACKING_NAME = 'contact-form-7';
|
28 |
|
29 |
public static function injectPixelCode() {
|
30 |
-
|
31 |
-
'wpcf7_contact_form',
|
32 |
-
array(__CLASS__, 'injectLeadEventHook'),
|
33 |
-
11);
|
34 |
-
}
|
35 |
-
|
36 |
-
public static function injectLeadEventHook() {
|
37 |
-
add_action(
|
38 |
-
'wp_footer',
|
39 |
-
array(__CLASS__, 'injectLeadEvent'),
|
40 |
-
11);
|
41 |
}
|
42 |
|
43 |
public static function injectLeadEvent() {
|
44 |
-
if (
|
45 |
return;
|
46 |
}
|
47 |
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
+
*
|
5 |
+
* This program is free software; you can redistribute it and/or modify
|
6 |
+
* it under the terms of the GNU General Public License as published by
|
7 |
+
* the Free Software Foundation; version 2 of the License.
|
8 |
+
* This program is distributed in the hope that it will be useful,
|
9 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
+
* GNU General Public License for more details.
|
12 |
+
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
+
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
|
25 |
class FacebookWordpressContactForm7 extends FacebookWordpressIntegrationBase {
|
26 |
const PLUGIN_FILE = 'contact-form-7/wp-contact-form-7.php';
|
27 |
const TRACKING_NAME = 'contact-form-7';
|
28 |
|
29 |
public static function injectPixelCode() {
|
30 |
+
self::addPixelFireForHook('wpcf7_contact_form', 'injectLeadEvent');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
public static function injectLeadEvent() {
|
34 |
+
if (FacebookPluginUtils::isAdmin()) {
|
35 |
return;
|
36 |
}
|
37 |
|
integration/FacebookWordpressEasyDigitalDownloads.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
@@ -20,6 +20,7 @@ namespace FacebookPixelPlugin\Integration;
|
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
use FacebookPixelPlugin\Core\FacebookPixel;
|
|
|
23 |
|
24 |
class FacebookWordpressEasyDigitalDownloads extends FacebookWordpressIntegrationBase {
|
25 |
const PLUGIN_FILE = 'easy-digital-downloads/easy-digital-downloads.php';
|
@@ -69,10 +70,7 @@ jQuery(document).ready(function ($) {
|
|
69 |
11);
|
70 |
|
71 |
// InitiateCheckout
|
72 |
-
|
73 |
-
'edd_after_checkout_cart',
|
74 |
-
array(__CLASS__, 'injectInitiateCheckoutEventHook'),
|
75 |
-
11);
|
76 |
|
77 |
// Purchase
|
78 |
add_action(
|
@@ -95,7 +93,7 @@ jQuery(document).ready(function ($) {
|
|
95 |
}
|
96 |
|
97 |
public static function injectAddToCartEvent() {
|
98 |
-
if (
|
99 |
return;
|
100 |
}
|
101 |
|
@@ -116,15 +114,8 @@ jQuery(document).ready(function ($) {
|
|
116 |
$listener_code);
|
117 |
}
|
118 |
|
119 |
-
public static function injectInitiateCheckoutEventHook() {
|
120 |
-
add_action(
|
121 |
-
'wp_footer',
|
122 |
-
array(__CLASS__, 'injectInitiateCheckoutEvent'),
|
123 |
-
11);
|
124 |
-
}
|
125 |
-
|
126 |
public static function injectInitiateCheckoutEvent() {
|
127 |
-
if (
|
128 |
return;
|
129 |
}
|
130 |
|
@@ -154,7 +145,7 @@ jQuery(document).ready(function ($) {
|
|
154 |
}
|
155 |
|
156 |
public static function injectPurchaseEvent() {
|
157 |
-
if (
|
158 |
return;
|
159 |
}
|
160 |
|
@@ -193,7 +184,7 @@ jQuery(document).ready(function ($) {
|
|
193 |
}
|
194 |
|
195 |
public static function injectViewContentEvent() {
|
196 |
-
if (
|
197 |
return;
|
198 |
}
|
199 |
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
+
*
|
5 |
+
* This program is free software; you can redistribute it and/or modify
|
6 |
+
* it under the terms of the GNU General Public License as published by
|
7 |
+
* the Free Software Foundation; version 2 of the License.
|
8 |
+
* This program is distributed in the hope that it will be useful,
|
9 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
+
* GNU General Public License for more details.
|
12 |
+
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
+
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
|
25 |
class FacebookWordpressEasyDigitalDownloads extends FacebookWordpressIntegrationBase {
|
26 |
const PLUGIN_FILE = 'easy-digital-downloads/easy-digital-downloads.php';
|
70 |
11);
|
71 |
|
72 |
// InitiateCheckout
|
73 |
+
self::addPixelFireForHook('edd_after_checkout_cart', 'injectInitiateCheckoutEvent');
|
|
|
|
|
|
|
74 |
|
75 |
// Purchase
|
76 |
add_action(
|
93 |
}
|
94 |
|
95 |
public static function injectAddToCartEvent() {
|
96 |
+
if (FacebookPluginUtils::isAdmin()) {
|
97 |
return;
|
98 |
}
|
99 |
|
114 |
$listener_code);
|
115 |
}
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
public static function injectInitiateCheckoutEvent() {
|
118 |
+
if (FacebookPluginUtils::isAdmin() || !function_exists('EDD')) {
|
119 |
return;
|
120 |
}
|
121 |
|
145 |
}
|
146 |
|
147 |
public static function injectPurchaseEvent() {
|
148 |
+
if (FacebookPluginUtils::isAdmin() || empty(static::$paymentID)) {
|
149 |
return;
|
150 |
}
|
151 |
|
184 |
}
|
185 |
|
186 |
public static function injectViewContentEvent() {
|
187 |
+
if (FacebookPluginUtils::isAdmin() || empty(static::$downloadID)) {
|
188 |
return;
|
189 |
}
|
190 |
|
integration/FacebookWordpressFormidableForm.php
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
+
*
|
5 |
+
* This program is free software; you can redistribute it and/or modify
|
6 |
+
* it under the terms of the GNU General Public License as published by
|
7 |
+
* the Free Software Foundation; version 2 of the License.
|
8 |
+
* This program is distributed in the hope that it will be useful,
|
9 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
+
* GNU General Public License for more details.
|
12 |
+
*/
|
13 |
+
|
14 |
+
/**
|
15 |
+
* @package FacebookPixelPlugin
|
16 |
+
*/
|
17 |
+
|
18 |
+
namespace FacebookPixelPlugin\Integration;
|
19 |
+
|
20 |
+
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
+
|
22 |
+
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
+
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
+
|
25 |
+
class FacebookWordpressFormidableForm extends FacebookWordpressIntegrationBase {
|
26 |
+
const PLUGIN_FILE = 'formidable/formidable.php';
|
27 |
+
const TRACKING_NAME = 'formidable-lite';
|
28 |
+
|
29 |
+
public static function injectPixelCode() {
|
30 |
+
add_action(
|
31 |
+
'frm_after_create_entry',
|
32 |
+
array(__CLASS__, 'injectLeadEventHook'),
|
33 |
+
30, 2);
|
34 |
+
}
|
35 |
+
|
36 |
+
public static function injectLeadEventHook($entry_id, $form_id) {
|
37 |
+
add_action('wp_footer', array(__CLASS__, 'injectLeadEvent'), 11);
|
38 |
+
}
|
39 |
+
|
40 |
+
public static function injectLeadEvent() {
|
41 |
+
if (FacebookPluginUtils::isAdmin()) {
|
42 |
+
return;
|
43 |
+
}
|
44 |
+
|
45 |
+
$param = array();
|
46 |
+
$code = FacebookPixel::getPixelLeadCode($param, self::TRACKING_NAME, false);
|
47 |
+
|
48 |
+
printf("
|
49 |
+
<!-- Facebook Pixel Event Code -->
|
50 |
+
<script>
|
51 |
+
%s
|
52 |
+
</script>
|
53 |
+
<!-- End Facebook Pixel Event Code -->
|
54 |
+
",
|
55 |
+
$code);
|
56 |
+
}
|
57 |
+
}
|
integration/FacebookWordpressGravityForms.php
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
+
*
|
5 |
+
* This program is free software; you can redistribute it and/or modify
|
6 |
+
* it under the terms of the GNU General Public License as published by
|
7 |
+
* the Free Software Foundation; version 2 of the License.
|
8 |
+
* This program is distributed in the hope that it will be useful,
|
9 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
+
* GNU General Public License for more details.
|
12 |
+
*/
|
13 |
+
|
14 |
+
/**
|
15 |
+
* @package FacebookPixelPlugin
|
16 |
+
*/
|
17 |
+
|
18 |
+
namespace FacebookPixelPlugin\Integration;
|
19 |
+
|
20 |
+
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
+
|
22 |
+
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
+
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
+
|
25 |
+
class FacebookWordpressGravityForms extends FacebookWordpressIntegrationBase {
|
26 |
+
const PLUGIN_FILE = 'gravityforms/gravityforms.php';
|
27 |
+
const TRACKING_NAME = 'gravity-forms';
|
28 |
+
|
29 |
+
public static function injectPixelCode() {
|
30 |
+
add_action(
|
31 |
+
'gform_after_submission',
|
32 |
+
array(__CLASS__, 'injectLeadEventHook'),
|
33 |
+
10, 2);
|
34 |
+
}
|
35 |
+
|
36 |
+
public static function injectLeadEventHook($entry, $form) {
|
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 |
+
$param = array();
|
48 |
+
$code = FacebookPixel::getPixelLeadCode($param, self::TRACKING_NAME, false);
|
49 |
+
|
50 |
+
printf("
|
51 |
+
<!-- Facebook Pixel Event Code -->
|
52 |
+
<script>
|
53 |
+
%s
|
54 |
+
</script>
|
55 |
+
<!-- End Facebook Pixel Event Code -->
|
56 |
+
",
|
57 |
+
$code);
|
58 |
+
}
|
59 |
+
}
|
integration/FacebookWordpressIntegrationBase.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
@@ -19,8 +19,6 @@ namespace FacebookPixelPlugin\Integration;
|
|
19 |
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
-
use FacebookPixelPlugin\Core\FacebookWordpressOptions;
|
23 |
-
|
24 |
abstract class FacebookWordpressIntegrationBase {
|
25 |
const PLUGIN_FILE = '';
|
26 |
const TRACKING_NAME = '';
|
@@ -30,4 +28,15 @@ abstract class FacebookWordpressIntegrationBase {
|
|
30 |
*/
|
31 |
public static function injectPixelCode() {
|
32 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
}
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
+
*
|
5 |
+
* This program is free software; you can redistribute it and/or modify
|
6 |
+
* it under the terms of the GNU General Public License as published by
|
7 |
+
* the Free Software Foundation; version 2 of the License.
|
8 |
+
* This program is distributed in the hope that it will be useful,
|
9 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
+
* GNU General Public License for more details.
|
12 |
+
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
19 |
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
|
|
|
|
22 |
abstract class FacebookWordpressIntegrationBase {
|
23 |
const PLUGIN_FILE = '';
|
24 |
const TRACKING_NAME = '';
|
28 |
*/
|
29 |
public static function injectPixelCode() {
|
30 |
}
|
31 |
+
|
32 |
+
// TODO(T39560845): Add unit test for addPixelFireForHook
|
33 |
+
public static function addPixelFireForHook($hook_name, $inject_function, $priority = 11) {
|
34 |
+
add_action(
|
35 |
+
$hook_name, function () use ($inject_function) {
|
36 |
+
add_action('wp_footer', array(
|
37 |
+
// get derived class in base class
|
38 |
+
static::class, $inject_function), 11);
|
39 |
+
},
|
40 |
+
$priority);
|
41 |
+
}
|
42 |
}
|
integration/FacebookWordpressMailchimpForWp.php
CHANGED
@@ -20,27 +20,18 @@ namespace FacebookPixelPlugin\Integration;
|
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
use FacebookPixelPlugin\Core\FacebookPixel;
|
|
|
23 |
|
24 |
class FacebookWordpressMailchimpForWp extends FacebookWordpressIntegrationBase {
|
25 |
const PLUGIN_FILE = 'mailchimp-for-wp/mailchimp-for-wp.php';
|
26 |
const TRACKING_NAME = 'mailchimp-for-wp';
|
27 |
|
28 |
public static function injectPixelCode() {
|
29 |
-
|
30 |
-
'mc4wp_form_subscribed',
|
31 |
-
array(__CLASS__, 'injectLeadEventHook'),
|
32 |
-
11);
|
33 |
-
}
|
34 |
-
|
35 |
-
public static function injectLeadEventHook() {
|
36 |
-
add_action(
|
37 |
-
'wp_footer',
|
38 |
-
array(__CLASS__, 'injectLeadEvent'),
|
39 |
-
11);
|
40 |
}
|
41 |
|
42 |
public static function injectLeadEvent() {
|
43 |
-
if (
|
44 |
return;
|
45 |
}
|
46 |
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
+
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
|
25 |
class FacebookWordpressMailchimpForWp extends FacebookWordpressIntegrationBase {
|
26 |
const PLUGIN_FILE = 'mailchimp-for-wp/mailchimp-for-wp.php';
|
27 |
const TRACKING_NAME = 'mailchimp-for-wp';
|
28 |
|
29 |
public static function injectPixelCode() {
|
30 |
+
self::addPixelFireForHook('mc4wp_form_subscribed', 'injectLeadEvent');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
public static function injectLeadEvent() {
|
34 |
+
if (FacebookPluginUtils::isAdmin()) {
|
35 |
return;
|
36 |
}
|
37 |
|
integration/FacebookWordpressNinjaForms.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
@@ -20,7 +20,7 @@ namespace FacebookPixelPlugin\Integration;
|
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
-
use FacebookPixelPlugin\Core\
|
24 |
|
25 |
class FacebookWordpressNinjaForms extends FacebookWordpressIntegrationBase {
|
26 |
const PLUGIN_FILE = 'ninja-forms/ninja-forms.php';
|
@@ -62,7 +62,7 @@ jQuery(document).ready(function($) {
|
|
62 |
}
|
63 |
|
64 |
public static function injectLeadEvent() {
|
65 |
-
if (
|
66 |
return;
|
67 |
}
|
68 |
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
+
*
|
5 |
+
* This program is free software; you can redistribute it and/or modify
|
6 |
+
* it under the terms of the GNU General Public License as published by
|
7 |
+
* the Free Software Foundation; version 2 of the License.
|
8 |
+
* This program is distributed in the hope that it will be useful,
|
9 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
+
* GNU General Public License for more details.
|
12 |
+
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
+
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
|
25 |
class FacebookWordpressNinjaForms extends FacebookWordpressIntegrationBase {
|
26 |
const PLUGIN_FILE = 'ninja-forms/ninja-forms.php';
|
62 |
}
|
63 |
|
64 |
public static function injectLeadEvent() {
|
65 |
+
if (FacebookPluginUtils::isAdmin()) {
|
66 |
return;
|
67 |
}
|
68 |
|
integration/FacebookWordpressWPECommerce.php
CHANGED
@@ -20,53 +20,19 @@ namespace FacebookPixelPlugin\Integration;
|
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
use FacebookPixelPlugin\Core\FacebookPixel;
|
|
|
23 |
|
24 |
class FacebookWordpressWPECommerce extends FacebookWordpressIntegrationBase {
|
25 |
const PLUGIN_FILE = 'wp-e-commerce/wp-e-commerce.php';
|
26 |
const TRACKING_NAME = 'wp-e-commerce';
|
27 |
|
28 |
-
private static $addToCartJS = "
|
29 |
-
jQuery(function($) {
|
30 |
-
$('.wpsc_buy_button').click(function() {
|
31 |
-
var item_group = $(this).parents('.group');
|
32 |
-
var form = item_group.find('.product_form');
|
33 |
-
var content_id = form[0].attributes['name'].value;
|
34 |
-
|
35 |
-
var prodtitle = item_group.find('.wpsc_product_title');
|
36 |
-
var content_name = prodtitle[0].innerText;
|
37 |
-
|
38 |
-
var current_price = item_group.find('.currentprice');
|
39 |
-
var value = current_price[0].innerText.slice(1);
|
40 |
-
|
41 |
-
var param = {
|
42 |
-
'content_ids': [content_id],
|
43 |
-
'content_name': content_name,
|
44 |
-
'content_type': 'product',
|
45 |
-
'%s': '%s',
|
46 |
-
'value': value
|
47 |
-
};
|
48 |
-
if (value) {
|
49 |
-
param['currency'] = 'USD';
|
50 |
-
}
|
51 |
-
|
52 |
-
%s
|
53 |
-
})
|
54 |
-
})
|
55 |
-
";
|
56 |
-
|
57 |
public static function injectPixelCode() {
|
58 |
// AddToCart
|
59 |
-
add_action(
|
60 |
-
'
|
61 |
-
array(__CLASS__, 'injectAddToCartEventHook'),
|
62 |
-
11);
|
63 |
-
|
64 |
|
65 |
// InitiateCheckout
|
66 |
-
|
67 |
-
'wpsc_before_shopping_cart_page',
|
68 |
-
array(__CLASS__, 'injectInitiateCheckoutEventHook'),
|
69 |
-
11);
|
70 |
|
71 |
// Purchase
|
72 |
add_action(
|
@@ -75,45 +41,26 @@ jQuery(function($) {
|
|
75 |
}
|
76 |
|
77 |
// Event hook for AddToCart.
|
78 |
-
public static function
|
79 |
-
|
80 |
-
|
81 |
-
array(__CLASS__, 'injectAddToCartEvent'),
|
82 |
-
11);
|
83 |
-
}
|
84 |
-
|
85 |
-
public static function injectAddToCartEvent() {
|
86 |
-
if (is_admin()) {
|
87 |
-
return;
|
88 |
}
|
|
|
|
|
|
|
89 |
|
90 |
-
$
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
$
|
96 |
-
|
97 |
-
|
98 |
-
<!-- Facebook Pixel Event Code -->
|
99 |
-
<script>
|
100 |
-
%s
|
101 |
-
</script>
|
102 |
-
<!-- End Facebook Pixel Event Code -->
|
103 |
-
",
|
104 |
-
$listener_code);
|
105 |
-
}
|
106 |
-
|
107 |
-
// Event hook for InitiateCheckout.
|
108 |
-
public static function injectInitiateCheckoutEventHook() {
|
109 |
-
add_action(
|
110 |
-
'wp_footer',
|
111 |
-
array(__CLASS__, 'injectInitiateCheckoutEvent'),
|
112 |
-
11);
|
113 |
}
|
114 |
|
115 |
public static function injectInitiateCheckoutEvent() {
|
116 |
-
if (
|
117 |
return;
|
118 |
}
|
119 |
|
@@ -129,11 +76,11 @@ jQuery(function($) {
|
|
129 |
}
|
130 |
|
131 |
public static function injectPurchaseEvent($purchase_log_object, $session_id, $display_to_screen) {
|
132 |
-
if (
|
133 |
return;
|
134 |
}
|
135 |
|
136 |
-
$params =
|
137 |
$code = FacebookPixel::getPixelPurchaseCode($params, self::TRACKING_NAME, true);
|
138 |
|
139 |
printf("
|
@@ -141,10 +88,10 @@ jQuery(function($) {
|
|
141 |
%s
|
142 |
<!-- End Facebook Pixel Event Code -->
|
143 |
",
|
144 |
-
|
145 |
}
|
146 |
|
147 |
-
private static function
|
148 |
$cart_items = $purchase_log_object->get_items();
|
149 |
$total_price = $purchase_log_object->get_total();
|
150 |
$currency = function_exists('\wpsc_get_currency_code') ? \wpsc_get_currency_code() : 'Unknown';
|
@@ -157,12 +104,32 @@ jQuery(function($) {
|
|
157 |
}
|
158 |
|
159 |
$params = array(
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
|
166 |
-
|
167 |
}
|
168 |
}
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
+
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
|
25 |
class FacebookWordpressWPECommerce extends FacebookWordpressIntegrationBase {
|
26 |
const PLUGIN_FILE = 'wp-e-commerce/wp-e-commerce.php';
|
27 |
const TRACKING_NAME = 'wp-e-commerce';
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
public static function injectPixelCode() {
|
30 |
// AddToCart
|
31 |
+
add_action('wpsc_add_to_cart_json_response',
|
32 |
+
array(__CLASS__, 'injectAddToCartEvent'), 11);
|
|
|
|
|
|
|
33 |
|
34 |
// InitiateCheckout
|
35 |
+
self::addPixelFireForHook('wpsc_before_shopping_cart_page', 'injectInitiateCheckoutEvent');
|
|
|
|
|
|
|
36 |
|
37 |
// Purchase
|
38 |
add_action(
|
41 |
}
|
42 |
|
43 |
// Event hook for AddToCart.
|
44 |
+
public static function injectAddToCartEvent($response) {
|
45 |
+
if (FacebookPluginUtils::isAdmin()) {
|
46 |
+
return $response;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
+
$product_id = $response['product_id'];
|
49 |
+
$params = static::getParametersForCart($product_id);
|
50 |
+
$code = FacebookPixel::getPixelAddToCartCode($params, self::TRACKING_NAME, true);
|
51 |
|
52 |
+
$code = sprintf("
|
53 |
+
<!-- Facebook Pixel Event Code -->
|
54 |
+
%s
|
55 |
+
<!-- End Facebook Pixel Event Code -->
|
56 |
+
",
|
57 |
+
$code);
|
58 |
+
$response['widget_output'] .= $code;
|
59 |
+
return $response;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
}
|
61 |
|
62 |
public static function injectInitiateCheckoutEvent() {
|
63 |
+
if (FacebookPluginUtils::isAdmin()) {
|
64 |
return;
|
65 |
}
|
66 |
|
76 |
}
|
77 |
|
78 |
public static function injectPurchaseEvent($purchase_log_object, $session_id, $display_to_screen) {
|
79 |
+
if (FacebookPluginUtils::isAdmin() || !$display_to_screen) {
|
80 |
return;
|
81 |
}
|
82 |
|
83 |
+
$params = static::getParametersForPurchase($purchase_log_object);
|
84 |
$code = FacebookPixel::getPixelPurchaseCode($params, self::TRACKING_NAME, true);
|
85 |
|
86 |
printf("
|
88 |
%s
|
89 |
<!-- End Facebook Pixel Event Code -->
|
90 |
",
|
91 |
+
$code);
|
92 |
}
|
93 |
|
94 |
+
private static function getParametersForPurchase($purchase_log_object) {
|
95 |
$cart_items = $purchase_log_object->get_items();
|
96 |
$total_price = $purchase_log_object->get_total();
|
97 |
$currency = function_exists('\wpsc_get_currency_code') ? \wpsc_get_currency_code() : 'Unknown';
|
104 |
}
|
105 |
|
106 |
$params = array(
|
107 |
+
'content_ids' => $item_ids,
|
108 |
+
'content_type' => 'product',
|
109 |
+
'currency' => $currency,
|
110 |
+
'value' => $total_price,
|
111 |
+
);
|
112 |
+
|
113 |
+
return $params;
|
114 |
+
}
|
115 |
+
|
116 |
+
private static function getParametersForCart($product_id) {
|
117 |
+
global $wpsc_cart;
|
118 |
+
$cart_items = $wpsc_cart->get_items();
|
119 |
+
foreach ($cart_items as $item) {
|
120 |
+
if ($item->product_id === $product_id) {
|
121 |
+
$unit_price = $item->unit_price;
|
122 |
+
break;
|
123 |
+
}
|
124 |
+
}
|
125 |
+
|
126 |
+
$params = array(
|
127 |
+
'content_ids' => array($product_id),
|
128 |
+
'content_type' => 'product',
|
129 |
+
'currency' => function_exists('\wpsc_get_currency_code') ? \wpsc_get_currency_code() : 'Unknown',
|
130 |
+
'value' => $unit_price,
|
131 |
+
);
|
132 |
|
133 |
+
return $params;
|
134 |
}
|
135 |
}
|
integration/FacebookWordpressWPForms.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
@@ -20,7 +20,7 @@ namespace FacebookPixelPlugin\Integration;
|
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
-
use FacebookPixelPlugin\Core\
|
24 |
|
25 |
class FacebookWordpressWPForms extends FacebookWordpressIntegrationBase {
|
26 |
const PLUGIN_FILE = 'wpforms-lite/wpforms.php';
|
@@ -51,7 +51,7 @@ jQuery(document).ready(function ($) {
|
|
51 |
}
|
52 |
|
53 |
public static function injectLeadEvent() {
|
54 |
-
if (
|
55 |
return;
|
56 |
}
|
57 |
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
+
*
|
5 |
+
* This program is free software; you can redistribute it and/or modify
|
6 |
+
* it under the terms of the GNU General Public License as published by
|
7 |
+
* the Free Software Foundation; version 2 of the License.
|
8 |
+
* This program is distributed in the hope that it will be useful,
|
9 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
+
* GNU General Public License for more details.
|
12 |
+
*/
|
13 |
|
14 |
/**
|
15 |
* @package FacebookPixelPlugin
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
+
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
|
25 |
class FacebookWordpressWPForms extends FacebookWordpressIntegrationBase {
|
26 |
const PLUGIN_FILE = 'wpforms-lite/wpforms.php';
|
51 |
}
|
52 |
|
53 |
public static function injectLeadEvent() {
|
54 |
+
if (FacebookPluginUtils::isAdmin()) {
|
55 |
return;
|
56 |
}
|
57 |
|
languages/official-facebook-pixel-ar_AR.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
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.7.
|
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.7.23\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.mo
CHANGED
Binary file
|
languages/official-facebook-pixel-ru_RU.po
CHANGED