register(); // Register module info. powerkit_register_module_info( array( 'name' => $this->name, 'desc' => $this->desc, 'slug' => $this->slug, 'type' => $this->type, 'category' => $this->category, 'priority' => $this->priority, 'public' => $this->public, 'enabled' => $this->enabled, 'badge' => $this->badge, 'load_extensions' => $this->load_extensions, 'links' => $this->links, ) ); // Check enabled module. if ( ! powerkit_module_enabled( $this->slug ) ) { return false; } // Define the functionality of the module. $this->initialize(); } /** * Register * * This function will register the module */ public function register() { /* do nothing */ } /** * Initialize * * This function will initialize the module */ public function initialize() { /* do nothing */ } }