define(); $this->include(); ThemePaste\SecureAdmin\App::init(); } /** * define all constant */ private function define() { define( "TPSA_DEVS", false ); // 'true' | is development mode on define( 'TPSA_PLUGIN_FILE', __FILE__ ); define( 'TPSA_PREFIX', 'tpsa' ); define( 'TPSA_PLUGIN_VERSION', '1.2.8' ); define( 'TPSA_PLUGIN_DIRNAME', dirname( TPSA_PLUGIN_FILE ) ); define( 'TPSA_PLUGIN_BASENAME', plugin_basename( TPSA_PLUGIN_FILE ) ); define( 'TPSA_PLUGIN_DIR', plugin_dir_path( TPSA_PLUGIN_FILE ) ); define( 'TPSA_PLUGIN_URL', plugin_dir_url( TPSA_PLUGIN_FILE ) ); define( 'TPSA_ASSETS_URL', plugins_url( 'assets', TPSA_PLUGIN_FILE ) ); define( 'TPSA_REAL_PATH', realpath( dirname( TPSA_PLUGIN_DIR ) ) ); if ( TPSA_DEVS ) { define( 'TPSA_ASSETS_VERSION', time() ); } else { define( 'TPSA_ASSETS_VERSION', TPSA_PLUGIN_VERSION ); } } /** * Include all needed files */ private function include() { // Include custom helper functions from the inc/functions.php file require_once dirname( __FILE__ ) . '/inc/functions.php'; require_once dirname( __FILE__ ) . '/vendor/autoload.php'; } /** * Singleton Instance */ static function get_instance() { if ( !self::$instance ) { self::$instance = new self(); } return self::$instance; } } /** * Plugin Start */ TPSucureAdmin::get_instance();