-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.php
47 lines (39 loc) · 1.4 KB
/
config.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
/**
* Set your app-specific constants here
*/
define('IFM_REQUIRED_PHP_VERSION', '5.3'); // because of get_called_class()
define('IFM_REQUIRED_WP_VERSION', '5.0');
define('IFM_REQUIRED_WP_NETWORK', false); // because plugin is not compatible with WordPress multisite
/**
* These Are just paths to directories to make the code a bit DRYer
*/
define('IFM_BASE', plugin_dir_path(__FILE__));
define('IFM_APP', IFM_BASE . 'app/');
define('IFM_INC', IFM_BASE . 'includes/');
define('IFM_ASSET', IFM_BASE . 'app/view/assets/');
define('IFM_VIEW', IFM_BASE . 'app/view/');
/**
* Define Post Types
*/
define('IFM_POST_TYPE', 'aggregator-posts');
define('IFM_POST_TAXONOMY_NAME', 'aggpost-type');
/**
* Set to determine the base namespace for the router.
*/
define('IFM_API_PREFIX', 'api');
define('IFM_NAMESPACE', 'fin');
define('IFM_MAIL_POST_TYPE', IFM_NAMESPACE . '-mail');
// hack to get things working for different installations.
define('AGGREGATOR_OR_IFM_URL', 'aggregator_entry_url');
/**
* Define Base Routes
*/
define('IFM_ROUTE_FORUM', '/' . IFM_NAMESPACE . '/forum');
define('IFM_ROUTE_COMMENTS', '/' . IFM_NAMESPACE . '/comments');
define('IFM_ROUTE_MAILBOX', '/' . IFM_NAMESPACE . '/mailbox');
define('IFM_ROUTE_ACCOUNT', '/' . IFM_NAMESPACE . '/account');
define('IFM_ROUTE_CREATE', '/' . IFM_NAMESPACE . '/create');
add_filter('rest_url_prefix', function ($prefix) {
return IFM_API_PREFIX;
});