addon_file = $addon_file; $this->updater = $updater; $this->initialize(); } /** * Load the add-on and setup hooks. * * @inheritdoc */ public function load() { if ( is_null( $this->updater ) ) { return; } $this->updater->set_addon_data( $this->addon_name, $this->addon_version, $this->addon_author ); $this->updater->load(); } }