Settings::installDefaultSettings()
Presist the default option into db if not exists
Description
Source
File: bp-integrations/learndash/core/Settings.php
protected function installDefaultSettings()
{
if (! $options = get_option($this->optionKey)) {
$options = $this->defaultOptions();
bp_update_option($this->optionKey, $options);
}
$this->options = $options;
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.