-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwp-callisto-migrator.php
More file actions
49 lines (41 loc) · 1.17 KB
/
wp-callisto-migrator.php
File metadata and controls
49 lines (41 loc) · 1.17 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
<?php
/**
* Plugin Name: WP Callisto Migrator
* Plugin URI: https://reader.postlight.com/
* Description: Postlight Parser for WordPress
* Version: 1.3
* Author: Postlight
* Author URI: https://postlight.com
*
* @package wp-callisto-migrator
*/
/**
* Exit if accessed directly
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Definitions
*/
if ( ! defined( 'WMP_PREFIX' ) ) {
define( 'WMP_PREFIX', 'wmp_' );
define( 'WMP_DEFAULT_TIMEZONE', 'America/New York' );
define( 'WMP_DATE_FORMAT', 'd-m-Y' );
define( 'WMP_PLUGIN_FOLDER_NAME', 'wp-callisto-migrator' );
define( 'WMP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
if ( empty( get_option( 'wmp_settings_api_endpoint' )['wmp_settings_api_endpoint_field'] ) ) {
define( 'WMP_MERCURY_PARSER_ENDPOINT', 'https://qlcdg90ss7.execute-api.us-east-1.amazonaws.com/dev/parser' );
define( 'WMP_CUSTOM_ENDPOINT', 0 );
} else {
define( 'WMP_MERCURY_PARSER_ENDPOINT', get_option( 'wmp_settings_api_endpoint' )['wmp_settings_api_endpoint_field'] );
define( 'WMP_CUSTOM_ENDPOINT', 1 );
}
}
/**
* Load plugin Start
*/
require WMP_PLUGIN_DIR . '/includes/classes/class-wmpbase.php';
global $wmp;
$wmp = new WmpBase();
$wmp->init();