Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Antti Kuosmanen committed Nov 30, 2015
0 parents commit 7ec259b
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions wc-fb-pixel-events.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php
/**
* Plugin name: WooCommerce Facebook Pixel Events
* Plugin URI: https://github.com/Seravo/woocommerce-facebook-pixel-events
* Description: Set up the Facebook conversion pixel and event tracking for WooCommerce
* Version: 0.1
* Author: Seravo Oy
* Author: http://seravo.fi
* License: GPLv3
* Text Domain: wc-fb-pixel-events
*/

/** Copyright 2015 Seravo Oy
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 3, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/

if (!class_exists('WooCommerce_Facebook_Pixel_Events')) {
class WooCommerce_Facebook_Pixel_Events {
public static $instance;

public static function init() {
if ( is_null( self::$instance ) ) {
self::$instance = new WooCommerce_Facebook_Pixel_Events();
}
return self::$instance;
}

private function __construct() {
}

/**
* Load our textdomain
*/
function load_our_textdomain() {
load_plugin_textdomain( 'wc-fb-pixel-events', false, dirname( plugin_basename(__FILE__) ) . '/lang/' );
}
}
}

// init the plugin
$woocommerce_facebook_pixel_events = WooCommerce_Facebook_Pixel_Events::init();

0 comments on commit 7ec259b

Please sign in to comment.