define_constants(); $this->includes(); } /** * Define the plugin constants * @return void */ private function define_constants() { define( 'ATBS_VERSION', '1.2.3' ); define( 'ATBS_URL', plugin_dir_url( __FILE__ ) ); define('ATBS_DIR_PATH', plugin_dir_path(__FILE__)); define( 'ATBS_DIR', __DIR__ ); } /** * Include the plugin files * @return void */ private function includes() { require_once ATBS_DIR . '/includes/loader.php'; } /** * Initialize the plugin * @return \ATBS_BLOCKS */ public static function init() { if( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } } } /** * Kickoff */ function atbs_block_init() { return ATBS_BLOCKS::init(); } // Let's start it atbs_block_init();