| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
// The environment config can be used BEFORE the 'init' hook. |
| 8 |
return [ |
| 9 |
'plugin' => [ |
| 10 |
'name' => 'Metricool', |
| 11 |
'version' => '2.1.0', |
| 12 |
'pro' => true, |
| 13 |
'path' => dirname(__DIR__), |
| 14 |
'base_path' => dirname(__DIR__) . DIRECTORY_SEPARATOR . plugin_basename(dirname(__DIR__)) . '.php', |
| 15 |
'assets_path' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR, |
| 16 |
'lang_path' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR . 'languages' . DIRECTORY_SEPARATOR, |
| 17 |
'view_path' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR, |
| 18 |
'feature_path' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'Features' . DIRECTORY_SEPARATOR, |
| 19 |
'migrations_path' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'migrations' . DIRECTORY_SEPARATOR, |
| 20 |
'react_path' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'react', |
| 21 |
'dir' => plugin_basename(dirname(__DIR__)), |
| 22 |
'base_file' => plugin_basename(dirname(__DIR__)) . '/' . plugin_basename(dirname(__DIR__)) . '.php', |
| 23 |
'lang' => plugin_basename(dirname(__DIR__)) . '/assets/languages', |
| 24 |
'url' => plugin_dir_url(__DIR__), |
| 25 |
'assets_url' => plugin_dir_url(__DIR__) . 'assets/', |
| 26 |
'views_url' => plugin_dir_url(__DIR__) . 'views/', |
| 27 |
'react_url' => plugin_dir_url(__DIR__) . 'react', |
| 28 |
'dashboard_url' => admin_url('admin.php?page=metricool'), |
| 29 |
'support_url' => 'https://wordpress.org/support/plugin/metricool/', |
| 30 |
'review_url' => 'https://wordpress.org/support/plugin/metricool/reviews/#new-post', |
| 31 |
], |
| 32 |
'metricool' => [ |
| 33 |
'rsp_auth_url' => 'https://metricool.rsp-auth.com', |
| 34 |
'base_api_domain' => 'https://app.metricool.com/api', |
| 35 |
'base_url' => 'https://app.metricool.com/', |
| 36 |
'help_url' => 'https://help.metricool.com', |
| 37 |
'upgrade_premium_url' => 'https://app.metricool.com/user-settings/plan', |
| 38 |
'connect_network_url' => 'https://app.metricool.com/evolution/brandSummary', |
| 39 |
'connect_linkedin_url' => 'https://app.metricool.com/evolution/linkedin', |
| 40 |
'connect_twitter_url' => 'https://app.metricool.com/evolution/twitter', |
| 41 |
'tracking_script_url' => 'https://tracker.metricool.com/resources/be.js', |
| 42 |
'create_post_url' => 'https://app.metricool.com/planner/post', |
| 43 |
'oauth_authorize_url' => 'https://app.metricool.com/oauth/authorize', |
| 44 |
'oauth_token_url' => 'https://app.metricool.com/oauth/token', |
| 45 |
'oauth_client_id' => 'BaKuXnUZBvNvNHrNXtGivVxwnfGKitgc', |
| 46 |
'google_recaptcha_key' => '6LflMV4sAAAAAMyPohHfMRVjZQBcu-YuZz_3nTTK', |
| 47 |
], |
| 48 |
'http' => [ |
| 49 |
'version' => 'v1', |
| 50 |
'namespace' => 'metricool', |
| 51 |
], |
| 52 |
'frontend' => [ |
| 53 |
'trusted_urls' => [ |
| 54 |
'legal_terms' => 'https://metricool.com/legal-terms/', |
| 55 |
'new_support_ticket' => 'https://wordpress.org/support/plugin/metricool/#new-topic-0', |
| 56 |
'base_url' => 'https://app.metricool.com/', |
| 57 |
], |
| 58 |
] |
| 59 |
]; |
| 60 |
|