-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.php
40 lines (31 loc) · 1.6 KB
/
const.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
<?php
//require_once("wp_init.php");
//require_once(__DIR__."/../../../wp-load.php");
//WooCommerce API keys (read/write)
$WOO_API_USER = "ck_0a3df38292cd32c486ce2a1ddda2f950890f8ed5";
$WOO_API_PASS = "cs_de6dbb7da6ed66a50de75b56c686044fc9193c7f";
$UPLOAD_MATCHES_ACTION_URL = plugin_dir_url(__FILE__) . "php/endpoints/upload_matches.php";
$LOAD_PROGRESS_URL = plugin_dir_url(__FILE__) . "php/endpoints/get_load_progress.php";
$CANCEL_URL = plugin_dir_url(__FILE__) . "php/endpoints/cancel_upload.php";
$LOGS_URL = plugin_dir_url(__FILE__) . "php/endpoints/get_logs.php";
$MISSING_FILES_URL = plugin_dir_url(__FILE__) . "php/endpoints/view_missing_files.php";
$MISSING_DATA_URL = plugin_dir_url(__FILE__) . "php/endpoints/view_missing_data.php";
$APPLY_SEO_URL = plugin_dir_url(__FILE__) . "apply_seo.php";
$UPDATE_PRODUCT_VISIBILITY_URL = plugin_dir_url(__FILE__) . "update_product_visibility.php";
$SEARCH_DB_URL = plugin_dir_url(__FILE__) . "php/endpoints/search_db.php";
$SEARCH_SOURCE_URL = plugin_dir_url(__FILE__) . "php/endpoints/search_source.php";
$TEST_URL = plugin_dir_url(__FILE__) . "test.php";
$CHECK_CLUB_ICONS_URL = plugin_dir_url(__FILE__) . "check_club_icons.php";
//JavaScript
$JS_UPLOAD_PAGE = plugin_dir_url(__FILE__) . "js/mts_upload_page.js";
//New format
$const = [
"js" => [
"upload_page" => $JS_UPLOAD_PAGE
],
"endpoints" => [
"upload_matches" => $UPLOAD_MATCHES_ACTION_URL,
"load_progress" => $LOAD_PROGRESS_URL
]
];
$MANAGE_STOCK = false;