Setter for a plugin setting with custom hooks
public set_setting ( string $key, mixed $value ) | ||
$key | string | |
$value | mixed |
/** * Complete the upgrade */ function upgrade_finished() { $this->clear_session(); $this->as3cf->set_setting($this->settings_key, $this->upgrade_id); $this->as3cf->save_settings(); $this->as3cf->clear_scheduled_event($this->cron_hook); }
/** * Update the saved upgrade ID */ protected function update_saved_upgrade_id() { $this->as3cf->set_setting($this->settings_key, $this->upgrade_id); $this->as3cf->save_settings(); }