-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsharebuttons-wp.php
More file actions
38 lines (30 loc) · 970 Bytes
/
sharebuttons-wp.php
File metadata and controls
38 lines (30 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/*
Plugin Name: Privacore Social Share Buttons
Plugin URI: https://www.privacore.com
Description: Sharing buttons that doesn't track user behaviour.
Version: 1.1
Author: Privacore
Author URI: https://www.privacore.com
*/
//Include functions file with all necessary code
require_once 'functions.php';
//Setup plugin options on activation
if( class_exists( 'PrivacoreSSBSetup' ) ) {
$pssbs = new PrivacoreSSBSetup();
//Call Activation method plugin activation
register_activation_hook( __FILE__, array( &$pssbs, 'pssbActivate') );
}
//Load Textdomain after plugin is loaded
add_action( 'plugins_loaded', 'pssb_load_textdomain' );
/**
* Load plugin textdomain.
*
* @since 1.0
*/
function pssb_load_textdomain() {
load_plugin_textdomain( 'privacore-ssb', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
}
//Initialize Frontend/Admin
$adminInstance = new PrivacoreSSBAdmin();
$frontendInstance = new PrivacoreSSBFrontend();