-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshoppingfeed-advanced.php
47 lines (40 loc) · 1.83 KB
/
shoppingfeed-advanced.php
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
<?php
/**
* Plugin Name: ShoppingFeed Advanced
* Plugin URI: https://wordpress.org/plugins/shoppingfeed/
* Description: Recognize custom fields for ShoppingFeed plugin
* Author: Shopping-Feed
* Author URI: https://www.shopping-feed.com/
* Text Domain: shopping-feed-advanced
* Domain Path: /languages
* Version: 6.0.15
* Requires at least WP: 5.2
* Requires at least WooCommerce: 3.8 (3.9/4.0)
* Requires PHP: 7.2
* License: GPLv3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/
namespace ShoppingFeed\ShoppingFeedWCAdvanced;
// Exit on direct access
defined( 'ABSPATH' ) || exit;
// Load composer autoload
if ( file_exists( plugin_dir_path( __FILE__ ) . '/vendor/autoload.php' ) ) {
require_once plugin_dir_path( __FILE__ ) . '/vendor/autoload.php';
}
define( 'SFA_PLUGIN_VERSION', '6.0.15' );
define( 'SFA_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'SFA_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'SFA_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
define( 'EAN_FIELD_SLUG', 'sf_advanced_ean_field' );
define( 'BRAND_FIELD_SLUG', 'sf_advanced_brand_field' );
define( 'TRACKING_NUMBER_FIELD_SLUG', 'sf_advanced_tracking_number_field' );
define( 'TRACKING_LINK_FIELD_SLUG', 'sf_advanced_tracking_link_field' );
define( 'LAST_MIGRATION_ACTION', 'sf_last_migration_action' );
/**
* Plugin bootstrap function.shoppingfeed-advanced/src/ShoppingFeedAdvanced.php
*/
function init() {
load_plugin_textdomain( 'shopping-feed-advanced', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
ShoppingFeedAdvanced::get_instance();
}
\add_action( 'init', __NAMESPACE__ . '\\init', 20 );