-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsalsi-sync.php
More file actions
66 lines (57 loc) · 2.28 KB
/
salsi-sync.php
File metadata and controls
66 lines (57 loc) · 2.28 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and defines a function
* that starts the plugin.
*
* @link https://www.multidots.com/
* @since 1.0
* @package Salsi_Sync
*
* @wordpress-plugin
* Plugin Name: Salsi Sync
* Requires Plugins: woocommerce
* Plugin URI: https://www.multidots.com
* Description: A plugin designed for seamless synchronization between Salsify and WordPress.
* Version: 1.1
* Author: Multidots
* Author URI: https://www.multidots.com/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: salsisync
* Domain Path: /languages
*/
namespace Salsi_Sync;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'SALSI_SYNC_VERSION', '1.1' );
define( 'SALSI_SYNC_URL', plugin_dir_url( __FILE__ ) );
define( 'SALSI_SYNC_DIR', plugin_dir_path( __FILE__ ) );
$base_dir = wp_upload_dir()['basedir'] . '/salsi-sync/';
define( 'SALSI_SYNC_UPLOAD_DIR', $base_dir);
define( 'SALSI_SYNC_BASEPATH', plugin_basename( __FILE__ ) );
define( 'SALSI_SYNC_SRC_BLOCK_DIR_PATH', untrailingslashit( SALSI_SYNC_DIR . 'assets/build/js/blocks' ) );
define( 'SALSI_SYNC_LOGO_ICON', SALSI_SYNC_URL . 'assets/images/menu-icon.svg' );
if ( ! defined( 'SALSI_SYNC_PATH' ) ) {
define( 'SALSI_SYNC_PATH', __DIR__ );
}
// Load the autoloader.
require_once plugin_dir_path( __FILE__ ) . '/inc/helpers/autoloader.php';
register_activation_hook( __FILE__, array( \Salsi_Sync\Inc\Activator::class, 'activate' ) );
register_activation_hook( __FILE__, array( \Salsi_Sync\Inc\Activator::class, 'salsisync__create_bulk_insert_log_table' ) );
register_activation_hook( __FILE__, array( \Salsi_Sync\Inc\Activator::class, 'salsisync__create_salsi_sync_folder_and_file' ) );
register_deactivation_hook( __FILE__, array( \Salsi_Sync\Inc\Deactivator::class, 'deactivate' ) );
/**
* Begins execution of the plugin.
*
* @since 1.0.0
*/
function run_md_scaffold() {
$plugin = new \Salsi_Sync\Inc\Salsi_Sync();
}
run_md_scaffold();