-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathethos-dashboard.php
35 lines (28 loc) · 988 Bytes
/
ethos-dashboard.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
<?php
/**
* Plugin Name: ethos-dashboard
* Plugin URI: http://www.eoxia.com
* Description: Handle ethos config
* Version: 0.2.0
* Author: Eoxia <[email protected]>
* Author URI: http://www.eoxia.com
* License: AGPLv3
* License URI: <https://spdx.org/licenses/AGPL-3.0-or-later.html>
*
* @package EthosDashboard
*/
namespace ethos_dashboard;
DEFINE( 'PLUGIN_ETHOS_DASHBOARD_PATH', realpath( plugin_dir_path( __FILE__ ) ) . '/' );
DEFINE( 'PLUGIN_ETHOS_DASHBOARD_URL', plugins_url( basename( __DIR__ ) ) . '/' );
DEFINE( 'PLUGIN_ETHOS_DASHBOARD_DIR', basename( __DIR__ ) );
// Include EO_Framework.
require_once 'core/external/eo-framework/eo-framework.php';
if ( ! defined( 'ACF_EARLY_ACCESS' ) ) {
DEFINE( 'ACF_EARLY_ACCESS', '5' );
}
// Boot your plugin.
\eoxia\Init_Util::g()->exec( PLUGIN_ETHOS_DASHBOARD_PATH, basename( __FILE__, '.php' ) );
add_filter( 'wplv_log_file_path', function( $path ) {
$path = ABSPATH . '../../logs/ethos-dashboard.log';
return $path;
} );