public function validation_aal_settings_reset($arrInput, $arrOldInput) { if (isset($arrInput['aal_settings']['caches']['clear_caches']) && $arrInput['aal_settings']['caches']['clear_caches']) { AmazonAutoLinks_WPUtilities::cleanTransients('AAL'); $this->setSettingNotice(__('The caches have been cleared.', 'amazon-auto-links')); } return $arrOldInput; // no need to update the options. }
/** * A callback method triggered when the plugin is uninstalled. * @remark currently not used yet. */ public static function _replyToDoWhenPluginUninstalled() { AmazonAutoLinks_WPUtilities::cleanTransients(); }