Content / Preferences / Custom plugin preferences

breadcrumb

Custom plugin preferences


comments: 0

Load all plugin preferences


$plugPrefs = e107::getPlugConfig('your_plugin')->getPref();

for using in class:

private $plugPrefs = array();
$this->plugPrefs = $plugPrefs;

update one preference

To save new value:

e107::getPlugConfig('your_plugin')->set('your_preference', $addonsList)->save(true);

save(true) - value will be replaced
save(false) - value will be added

empty array:
e107::getPlugConfig('visualbuilder')->set('visualbuilder', array())->save(true);