includes_path = plugin_dir_path( __FILE__ ); $this->includes_url = plugins_url( '/', __FILE__ ); $this->log_table = $wpdb->prefix . "als_log"; //Include the stemming library require_once( $this->includes_path . 'porter-stemmer.php' ); //Include core functions require_once( $this->includes_path . 'functions.php' ); //Include main search class require_once( $this->includes_path . 'class-als-search.php' ); $this->search = new Als_Search(); //Include filter hooks require_once( $this->includes_path . 'filters.php' ); //Include action hooks require_once( $this->includes_path . 'actions.php' ); //Include the settings api require_once( $this->includes_path . 'admin/settings.php' ); } } //A helper function to quickly access the class instance function als_lite_instance(){ return ALS_Lite::instance(); } //Off we go als_lite_instance();