define_constants(); $this->includes(); } /** * Define the plugin constants * return void */ private function define_constants() { define( 'GUTSLIDER_VERSION', '2.1.0' ); define( 'GUTSLIDER_URL', plugin_dir_url( __FILE__ ) ); define('GUTSLIDER_DIR_PATH', plugin_dir_path(__FILE__)); define( 'GUTSLIDER_DIR', __DIR__ ); } /** * Initialize the plugin * return GutSliderBlocks */ public static function init() { if( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Include the files * return void */ public function includes() { require_once GUTSLIDER_DIR . '/includes/init.php'; } } } /** * Initialize the GutSliderBlocks * return GutSliderBlocks */ function gutsliderblocks() { return GutSliderBlocks::init(); } // kick-off the plugin gutsliderblocks();